Open 3D Engine HttpRequestor Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
HttpRequestor::TextParameters Class Reference

#include <HttpTextRequestParameters.h>

Public Member Functions

 TextParameters (const AZStd::string &URI, Aws::Http::HttpMethod method, const TextCallback &callback)
 
 TextParameters (const AZStd::string &URI, Aws::Http::HttpMethod method, const Headers &headers, const TextCallback &callback)
 
 TextParameters (const AZStd::string &URI, Aws::Http::HttpMethod method, const Headers &headers, const AZStd::string &body, const TextCallback &callback)
 
 TextParameters (const TextParameters &)=default
 
TextParametersoperator= (const TextParameters &)=default
 
 TextParameters (TextParameters &&)=default
 
TextParametersoperator= (TextParameters &&)=default
 
const Aws::String & GetURI () const
 Get the URI in string form as an recipient of the HTTP connection.
 
Aws::Http::HttpMethod GetMethod () const
 Get the HTTP method configured to use for a request.
 
const Headers & GetHeaders () const
 
const std::shared_ptr< std::stringstream > & GetBodyStream () const
 
const TextCallback & GetCallback () const
 

Detailed Description

Models the parameters needed to make a HTTP call and then receive the returned TEXT from the web request without parsing it.

Constructor & Destructor Documentation

◆ TextParameters() [1/3]

HttpRequestor::TextParameters::TextParameters ( const AZStd::string &  URI,
Aws::Http::HttpMethod  method,
const TextCallback &  callback 
)
inline
Parameters
URIA universal resource indicator representing an endpoint.
methodThe HTTP method to configure.
callbackThe callback method to receive a HTTP call's response.

◆ TextParameters() [2/3]

HttpRequestor::TextParameters::TextParameters ( const AZStd::string &  URI,
Aws::Http::HttpMethod  method,
const Headers &  headers,
const TextCallback &  callback 
)
inline
Parameters
URIA universal resource indicator representing an endpoint.
methodThe HTTP method to configure.
headersA map of header names and values to use.
callbackThe callback method to receive a HTTP call's response.

◆ TextParameters() [3/3]

HttpRequestor::TextParameters::TextParameters ( const AZStd::string &  URI,
Aws::Http::HttpMethod  method,
const Headers &  headers,
const AZStd::string &  body,
const TextCallback &  callback 
)
inline
Parameters
URIA universal resource indicator representing an endpoint.
methodThe HTTP method to configure.
headersA map of header names and values to use.
bodyAn data to associate with an HTTP call.
callbackThe callback method to receive a HTTP call's response.

Member Function Documentation

◆ GetBodyStream()

const std::shared_ptr< std::stringstream > & HttpRequestor::TextParameters::GetBodyStream ( ) const
inline

Get an input stream that can be used to send the body of a request.

Returns
A string stream representing a request body.

◆ GetCallback()

const TextCallback & HttpRequestor::TextParameters::GetCallback ( ) const
inline

Get the callback function for processing text returned in an HTTP response. Callback functions are responsible for correctly interpreting the HTTP response code, and should communicate any failures.

Returns
The callback function to process endpoint responses with.

◆ GetHeaders()

const Headers & HttpRequestor::TextParameters::GetHeaders ( ) const
inline

Get the list of extra headers to send as part of a request.

Returns
A map of header-value pairs.

The documentation for this class was generated from the following file: