| Package | Description |
|---|---|
| com.github.mjeanroy.junit.servers.client | |
| com.github.mjeanroy.junit.servers.client.impl |
| Modifier and Type | Method and Description |
|---|---|
HttpHeader |
HttpHeader.Builder.build()
Build HTTP header instance.
|
HttpHeader |
HttpResponse.getCacheControl()
Get
Cache-Control header from http response. |
HttpHeader |
HttpResponse.getContentEncoding()
Get
Content-Encoding header from http response. |
HttpHeader |
HttpResponse.getContentSecurityPolicy()
Get
Content-Security-Policy header from http response. |
HttpHeader |
HttpResponse.getContentType()
Get
Content-Type header from http response. |
HttpHeader |
HttpResponse.getETag()
Get
ETag header from http response. |
HttpHeader |
HttpResponse.getHeader(String name)
Get header from HTTP response (if header is missing,
null will be returned). |
HttpHeader |
HttpResponse.getLastModified()
Get
Last-Modified header from http response. |
HttpHeader |
HttpResponse.getLocation()
Get
Location header from http response. |
HttpHeader |
HttpResponse.getStrictTransportSecurity()
Get
Strict-Transport-Security header from http response. |
HttpHeader |
HttpResponse.getXContentSecurityPolicy()
Get
X-Content-Security-Policy header from http response: this header was initially an experimental
header implemented in Firefox. |
HttpHeader |
HttpResponse.getXContentTypeOptions()
Get
X-Content-Type-Options header from http response. |
HttpHeader |
HttpResponse.getXWebkitCSP()
Get
X-Webkit-CSP header from http response: this header was initially an experimental header implemented
in Webkit browser (Chrome and Safari). |
HttpHeader |
HttpResponse.getXXSSProtection()
Get
X-XSS-Protection header from http response. |
static HttpHeader |
HttpHeader.header(String name,
Collection<String> values)
Create a header with multiple values.
|
static HttpHeader |
HttpHeader.header(String name,
String value)
Create a header with a single value.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,HttpHeader> |
HttpClientConfiguration.getDefaultHeaders()
Get
HttpClientConfiguration.defaultHeaders (non-modifiable map). |
Collection<HttpHeader> |
HttpResponse.getHeaders()
Get the list of headers.
|
| Modifier and Type | Method and Description |
|---|---|
HttpClientConfiguration.Builder |
HttpClientConfiguration.Builder.addDefaultHeader(HttpHeader header)
Add new default header: if a header with the same name as already been added, it
will be overwritten with this new header.
|
HttpRequest |
HttpRequest.addHeader(HttpHeader header)
Add header.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,HttpHeader> |
AbstractHttpRequest.headers
HTTP Headers.
|
| Modifier and Type | Method and Description |
|---|---|
HttpHeader |
AbstractHttpResponse.getCacheControl() |
HttpHeader |
AbstractHttpResponse.getContentEncoding() |
HttpHeader |
AbstractHttpResponse.getContentSecurityPolicy() |
HttpHeader |
AbstractHttpResponse.getContentType() |
HttpHeader |
AbstractHttpResponse.getETag() |
HttpHeader |
DefaultHttpResponse.getHeader(String name) |
HttpHeader |
AbstractHttpResponse.getLastModified() |
HttpHeader |
AbstractHttpResponse.getLocation() |
HttpHeader |
AbstractHttpResponse.getStrictTransportSecurity() |
HttpHeader |
AbstractHttpResponse.getXContentSecurityPolicy() |
HttpHeader |
AbstractHttpResponse.getXContentTypeOptions() |
HttpHeader |
AbstractHttpResponse.getXWebkitCSP() |
HttpHeader |
AbstractHttpResponse.getXXSSProtection() |
| Modifier and Type | Method and Description |
|---|---|
Collection<HttpHeader> |
DefaultHttpResponse.getHeaders() |
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
AbstractHttpRequest.addHeader(HttpHeader header) |
| Modifier and Type | Method and Description |
|---|---|
static DefaultHttpResponse |
DefaultHttpResponse.of(long duration,
int status,
String body,
Collection<HttpHeader> headers)
Create a default HTTP Response from given values.
|
Copyright © 2018. All rights reserved.