UrlResponseInfo.HeaderBlock

abstract class UrlResponseInfo.HeaderBlock


Unmodifiable container of response headers or trailers.

Summary

Public constructors

Public functions

abstract (Mutable)List<(Mutable)Map.Entry<String!, String!>!>!

Returns an unmodifiable list of the response header field and value pairs.

abstract (Mutable)Map<String!, (Mutable)List<String!>!>!

Returns an unmodifiable map from response-header field names to lists of values.

Public constructors

HeaderBlock

HeaderBlock()

Public functions

getAsList

abstract fun getAsList(): (Mutable)List<(Mutable)Map.Entry<String!, String!>!>!

Returns an unmodifiable list of the response header field and value pairs. The headers are in the same order they are received over the wire.

Returns
(Mutable)List<(Mutable)Map.Entry<String!, String!>!>!

an unmodifiable list of response header field and value pairs

getAsMap

abstract fun getAsMap(): (Mutable)Map<String!, (Mutable)List<String!>!>!

Returns an unmodifiable map from response-header field names to lists of values. Each list of values for a single header field is in the same order they were received over the wire.

Returns
(Mutable)Map<String!, (Mutable)List<String!>!>!

an unmodifiable map from response-header field names to lists of values