public interface HttpObject<T extends HttpObject,B extends Body>
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsHeader(String name) |
B |
getBody() |
byte[] |
getBodyAsRawBytes() |
String |
getBodyAsString() |
List<Cookie> |
getCookieList() |
Cookies |
getCookies() |
String |
getFirstHeader(String name) |
List<String> |
getHeader(String name) |
List<Header> |
getHeaderList() |
Headers |
getHeaders() |
T |
removeHeader(NottableString name) |
T |
removeHeader(String name) |
T |
replaceHeader(Header header) |
T |
withBody(B body) |
T |
withBody(byte[] body) |
T |
withBody(String body) |
T |
withBody(String body,
Charset charset) |
T |
withCookie(Cookie cookie) |
T |
withCookie(NottableString name,
NottableString value) |
T |
withCookie(String name,
String value) |
T |
withCookies(Cookie... cookies) |
T |
withCookies(Cookies cookies) |
T |
withCookies(List<Cookie> cookies) |
T |
withHeader(Header header) |
T |
withHeader(NottableString name,
NottableString... values) |
T |
withHeader(String name,
String... values) |
T |
withHeaders(Header... headers) |
T |
withHeaders(Headers headers) |
T |
withHeaders(List<Header> headers) |
T withBody(byte[] body)
B getBody()
byte[] getBodyAsRawBytes()
String getBodyAsString()
Headers getHeaders()
T withHeader(NottableString name, NottableString... values)
boolean containsHeader(String name)
T removeHeader(NottableString name)
Cookies getCookies()
T withCookie(NottableString name, NottableString value)
Copyright © 2019. All rights reserved.