Class HttpHeaders
- java.lang.Object
-
- com.github.tomakehurst.wiremock.http.HttpHeaders
-
public class HttpHeaders extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description HttpHeaders()
HttpHeaders(HttpHeader... headers)
HttpHeaders(HttpHeaders headers)
HttpHeaders(java.lang.Iterable<HttpHeader> headers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<HttpHeader>
all()
static HttpHeaders
copyOf(HttpHeaders source)
boolean
equals(java.lang.Object o)
ContentTypeHeader
getContentTypeHeader()
HttpHeader
getHeader(java.lang.String key)
int
hashCode()
java.util.Set<java.lang.String>
keys()
static HttpHeaders
noHeaders()
HttpHeaders
plus(HttpHeader... additionalHeaders)
int
size()
java.lang.String
toString()
-
-
-
Constructor Detail
-
HttpHeaders
public HttpHeaders()
-
HttpHeaders
public HttpHeaders(HttpHeader... headers)
-
HttpHeaders
public HttpHeaders(java.lang.Iterable<HttpHeader> headers)
-
HttpHeaders
public HttpHeaders(HttpHeaders headers)
-
-
Method Detail
-
noHeaders
public static HttpHeaders noHeaders()
-
getHeader
public HttpHeader getHeader(java.lang.String key)
-
getContentTypeHeader
public ContentTypeHeader getContentTypeHeader()
-
all
public java.util.Collection<HttpHeader> all()
-
keys
public java.util.Set<java.lang.String> keys()
-
copyOf
public static HttpHeaders copyOf(HttpHeaders source)
-
size
public int size()
-
plus
public HttpHeaders plus(HttpHeader... additionalHeaders)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-