![]() |
zeep::http::request
// In header: <zeep/http/request.hpp> class request { public: // types typedef header ; typedef header ; // construct/copy/destruct (, , = { , header > && = {}, = {}); (request &); request & (request &); // friend functions (, request &); // public member functions (); () ; () ; (); () ; () ; (); () ; () ; () ; (); () ; () ; () ; (, ); () ; () ; (); json::element () ; (json::element &&); () ; (, ) ; template<typename T, typename std::enable_if_t< std::is_floating_point_v< T >, int >> (, ) ; template<typename T, typename std::enable_if_t< std::is_integral_v< T > and not std::is_same_v< T, bool >, int >> (, ) ; template<typename T, typename std::enable_if_t< std::is_same_v< T, bool >, int >> (, ) ; () ; file_param () ; file_param > () ; () ; () ; () ; (, ); () ; () ; (, ); (, ); () ; // private member functions (); };
request contains the parsed original HTTP request as received by the server.
request
public member functions( socket);Fetch the local address from the connected socket.
() ;
() ;Get the HTTP version requested.
( method);Set the METHOD type (POST, GET, etc)
() ;Return the METHOD type (POST, GET, etc)
() ;Return the original URI as requested.
( uri);Set the URI.
() ;Get the address of the connecting remote.
() ;Get the entire request line (convenience method)
() ;Return the payload.
( payload);Set the payload.
() ;Return the time at which this request was received.
( type) ;Return the value in the Accept header for type.
() ;Check for Connection: keep-alive header.
( name, value);Set or replace a named header.
() ;Return the list of headers.
( name) ;Return the named header.
( name);Remove this header from the list of headers.
json::element () ;Get the credentials. This is filled in if the request was validated.
(json::element && credentials);Set the credentials for the request.
( name) ;Return the named parameter.
Fetch parameters from a request, either from the URL or from the payload in case the request contains a url-encoded or multi-part content-type header
( name, defaultValue) ;Return the value of the parameter named name or the defaultValue if this parameter was not found.
template<typename T, typename std::enable_if_t< std::is_floating_point_v< T >, int >> ( name, defaultValue) ;Return the value of the parameter named name or the defaultValue if this parameter was not found.
template<typename T, typename std::enable_if_t< std::is_integral_v< T > and not std::is_same_v< T, bool >, int >> ( name, defaultValue) ;Return the value of the parameter named name or the defaultValue if this parameter was not found.
template<typename T, typename std::enable_if_t< std::is_same_v< T, bool >, int >> ( name, defaultValue) ;Return the value of the parameter named name or the defaultValue if this parameter was not found.
() ;Return a std::multimap of name/value pairs for all parameters.
file_param ( name) ;Return the info for a file parameter with name name.
file_param > ( name) ;Return the info for all file parameters with name name.
( name) ;Return whether the named parameter is present in the request.
( name) ;Return the value of HTTP Cookie with name name.
( name) ;Return the value of HTTP Cookie with name name.
( name, value);Set the value of HTTP Cookie with name name to value.
() ;Return the content of this request in a sequence of const_buffers.
Can be used in code that sends HTTP requests
() ;Return the Accept-Language header value in the request as a std::locale object.
( text, contentType);suppose we want to construct requests...
( name, value);set a header
( name) ;Return value and flag indicating the existence of a parameter named name.