![]() |
zeep::http::reply — the class containing all to generate a HTTP reply
// In header: <zeep/http/reply.hpp> class reply { public: // types typedef header ; // construct/copy/destruct ( = , = { ); (, , header > &&, ); (reply &); (reply &&); reply & (reply &); reply & (reply &&); ~(); // friend functions (, reply &); // public member functions (); (, ); (); (, ); () ; (); (, , cookie_directive > = {}); (); () ; () ; (); (xml::document &); (xml::element &); (json::element &); (, ); (, , ); (, ); () ; () ; (); (); () ; () ; () ; // public static functions reply (); reply (, ); reply (); reply (, ); };
Create a HTTP reply, should be either HTTP 1.0 or 1.1
reply
public member functions();
( version_major, version_minor);
( version);
( name, value);Add a header with name name and value value.
( name) ;Return the value of the header with name name.
( name);Remove the header with name name from the list of headers.
( name, value, cookie_directive > directives = {});Set a cookie.
( name);Set a header to delete the name cookie.
( name) ;Get a cookie.
() ;
( type);
(xml::document & doc);Set the content and the content-type header depending on the content of doc (might be xhtml)
(xml::element & data);Set the content and the content-type header to text/xml.
(json::element & json);Set the content and the content-type header based on JSON data.
( data, contentType);Set the content and the content-type header.
( data, size, contentType);Set the content by copying data and the content-type header.
( data, contentType);
To send a stream of data, with unknown size (using chunked transfer). reply takes ownership of data and deletes it when done.
() ;
return the content, only useful if the content was set with some constant string data.
() ;return the content of the reply as an array of boost::asio::const_buffer objects
();for istream data, if the returned buffer array is empty, the data is done
( status);
() ;
() ;return the size of the reply, only correct if the reply is fully memory based (no streams)
() ;Return true if the content will be sent chunked encoded.