Java com.squareup.okhttp Headers fields, constructors, methods, implement or subclass

Example usage for Java com.squareup.okhttp Headers fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.squareup.okhttp Headers.

The text is from its open source code.

Method

Stringget(String name)
Returns the last value corresponding to the specified field, or null.
Stringname(int index)
Returns the field at position or null if that is out of range.
Setnames()
Returns an immutable case-insensitive set of header names.
BuildernewBuilder()
Headersof(String... namesAndValues)
Returns headers for the alternating header names and values.
Headersof(Map headers)
Returns headers for the header names and values in the Map .
intsize()
Returns the number of field values.
Map>toMultimap()
StringtoString()
Stringvalue(int index)
Returns the value at index or null if that is out of range.
Listvalues(String name)
Returns an immutable list of the header values for name .