public static abstract class

UrlResponseInfo.HeaderBlock

extends Object
java.lang.Object
   ↳ com.tencent.smtt.export.external.interfaces.UrlResponseInfo.HeaderBlock

Class Overview

Unmodifiable container of response headers or trailers.

Summary

Public Constructors
HeaderBlock()
Public Methods
abstract List<Entry<String, String>> getAsList()
Returns an unmodifiable list of the response header field and value pairs.
abstract Map<String, List<String>> getAsMap()
Returns an unmodifiable map from response-header field names to lists of values.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public HeaderBlock ()

Public Methods

public abstract List<Entry<String, String>> getAsList ()

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
  • an unmodifiable list of response header field and value pairs

public abstract Map<String, List<String>> getAsMap ()

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
  • an unmodifiable map from response-header field names to lists of values