public interface Response
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getBody()
Deprecated.
use
getResponseBody() . This method will be removed in a future release. |
default Optional<String> |
getContentType()
Get the content-type header of this response, if it has been set.
|
default Optional<String> |
getHeaderValue(String name)
Get the first of header value for the header param with the given name (if any exist).
|
Collection<String> |
getHeaderValues(String name)
Get the collection of header values for the header param with the given name.
|
default Optional<Body> |
getResponseBody() |
int |
getStatus() |
int getStatus()
@Nonnull @Deprecated Optional<String> getBody()
getResponseBody()
. This method will be removed in a future release.@Nonnull Collection<String> getHeaderValues(String name)
name
- The (case insensitive) name of the parameter to retrieve@Nonnull default Optional<String> getHeaderValue(String name)
name
- The (case insensitive) name of the parameter to retrieveCopyright © 2016–2021 Atlassian. All rights reserved.