Skip to content

//okhttp/okhttp3/Headers/[nonJvm]byteCount

byteCount

[nonJvm]\ fun byteCount(): Long

Returns the number of bytes required to encode these headers using HTTP/1.1. This is also the approximate size of HTTP/2 headers before they are compressed with HPACK. This value is intended to be used as a metric: smaller headers are more efficient to encode and transmit.