AWS SDK for C++
0.14.3
AWS SDK for C++
|
#include <HttpResponse.h>
Public Member Functions | |
HttpResponse (const HttpRequest &originatingRequest) | |
virtual | ~HttpResponse ()=default |
virtual const HttpRequest & | GetOriginatingRequest () const |
virtual HeaderValueCollection | GetHeaders () const =0 |
virtual bool | HasHeader (const char *headerName) const =0 |
virtual const Aws::String & | GetHeader (const Aws::String &headerName) const =0 |
virtual HttpResponseCode | GetResponseCode () const |
virtual void | SetResponseCode (HttpResponseCode httpResponseCode) |
virtual const Aws::String & | GetContentType () const |
virtual Aws::IOStream & | GetResponseBody () const =0 |
virtual Utils::Stream::ResponseStream && | SwapResponseStreamOwnership ()=0 |
virtual void | AddHeader (const Aws::String &, const Aws::String &)=0 |
virtual void | SetContentType (const Aws::String &contentType) |
Abstract class for representing an Http Response.
Definition at line 120 of file HttpResponse.h.
|
inline |
Initializes an http response with the originalRequest and the response code.
Definition at line 126 of file HttpResponse.h.
|
virtualdefault |
|
pure virtual |
Adds a header to the http response object.
Implemented in Aws::Http::Standard::StandardHttpResponse.
|
inlinevirtual |
Gets the content-type of the response body
Definition at line 161 of file HttpResponse.h.
|
pure virtual |
Returns the value for a header at headerName if it exists.
Implemented in Aws::Http::Standard::StandardHttpResponse.
|
pure virtual |
Get the headers from this response
Implemented in Aws::Http::Standard::StandardHttpResponse.
|
inlinevirtual |
Get the request that originated this response
Definition at line 136 of file HttpResponse.h.
|
pure virtual |
Gets the response body of the response.
Implemented in Aws::Http::Standard::StandardHttpResponse.
|
inlinevirtual |
Gets response code for this http response.
Definition at line 153 of file HttpResponse.h.
|
pure virtual |
Returns true if the response contains a header by headerName
Implemented in Aws::Http::Standard::StandardHttpResponse.
|
inlinevirtual |
Sets the content type header on the http response object.
Definition at line 178 of file HttpResponse.h.
|
inlinevirtual |
Sets the response code for this http response.
Definition at line 157 of file HttpResponse.h.
|
pure virtual |
Gives full control of the memory of the ResponseBody over to the caller. At this point, it is the caller's responsibility to clean up this object.
Implemented in Aws::Http::Standard::StandardHttpResponse.