@Beta public class RestResponse extends Object
Constructor and Description |
---|
RestResponse(ApiClient client)
Create a new
RestResponse from an ApiClient |
RestResponse(org.springframework.http.HttpStatus statusCode)
Create a new
RestResponse from an http status code. |
Modifier and Type | Method and Description |
---|---|
org.springframework.util.MultiValueMap<String,String> |
getHeaders()
Http headers of this response.
|
org.springframework.http.HttpStatus |
getStatusCode()
Http status code of this response.
|
public RestResponse(@Nonnull ApiClient client)
RestResponse
from an ApiClient
client
- A client that was used to execute an HTTP request.public RestResponse(@Nonnull org.springframework.http.HttpStatus statusCode)
RestResponse
from an http status code.statusCode
- The status code for this http response.Copyright © 2020 SAP SE. All rights reserved.