//okhttp/okhttp3/Headers/equals
equals¶
[common]\ expect open operator override fun equals(other: Any?): Boolean
Returns true if other
is a Headers
object with the same headers, with the same casing, in the same order. Note that two headers instances may be semantically equal but not equal according to this method. In particular, none of the following sets of headers are equal according to this method:
- Original
Content-Type: text/html
Content-Length: 50
- Different order
Content-Length: 50
Content-Type: text/html
- Different case
content-type: text/html
content-length: 50
- Different values
Content-Type: text/html
Content-Length: 050
Applications that require semantically equal headers should convert them into a canonical form before comparing them for equality.
[jvm, nonJvm]\ [jvm, nonJvm]\ actual open operator override fun equals(other: Any?): Boolean