headers property

Map<String, String> headers
final

A map of expected HTTP headers. Each key represents a header field name and each value represents the expected header value. An HTTP request is not in compliance with the protocol if any listed header is missing from the serialized request or if the expected header value differs from the serialized request value.

Applies no constraints on additional headers.

Implementation

final Map<String, String> headers;