ofxHTTP
A collection of tools for HTTP.
ofx::HTTP::PostEventArgs Class Reference

A callback for raw HTTP POST forms. More...

#include <PostRouteEvents.h>

Inheritance diagram for ofx::HTTP::PostEventArgs:
ofx::HTTP::BasePostEventArgs ofx::HTTP::ServerEventArgs

Public Member Functions

 PostEventArgs (ServerEventArgs &evt, const std::string &postId, const IO::ByteBuffer &data)
 
virtual ~PostEventArgs ()
 Destroy the PostEventArgs.
 
const IO::ByteBuffer & getBuffer () const
 Get the raw POST form data. More...
 
- Public Member Functions inherited from ofx::HTTP::BasePostEventArgs
 BasePostEventArgs (ServerEventArgs &e, const std::string &postId)
 
virtual ~BasePostEventArgs ()
 Destroy the BasePostEventArgs.
 
const std::string & getPostId () const
 The post id. More...
 
- Public Member Functions inherited from ofx::HTTP::ServerEventArgs
 ServerEventArgs (Poco::Net::HTTPServerRequest &request, Poco::Net::HTTPServerResponse &response, AbstractSession &session)
 Construct the ServerEventArgs. More...
 
virtual ~ServerEventArgs ()
 Destroy the ServerEventArgs.
 
Poco::Net::HTTPServerRequest & request ()
 Get the Poco::Net::HTTPServerRequest. More...
 
Poco::Net::HTTPServerResponse & response ()
 Get the Poco::Net::HTTPServerResponse. More...
 
AbstractSessionsession ()
 Get the session associated with this event. More...
 

Protected Attributes

const IO::ByteBuffer & _data
 The raw form data sent with the POST.
 
- Protected Attributes inherited from ofx::HTTP::BasePostEventArgs
std::string _postId
 The post id.
 
- Protected Attributes inherited from ofx::HTTP::ServerEventArgs
Poco::Net::HTTPServerRequest & _request
 A reference to the server request.
 
Poco::Net::HTTPServerResponse & _response
 Callbacks are permitted to set the response. More...
 
AbstractSession_session
 The session associated with the event.
 

Detailed Description

A callback for raw HTTP POST forms.

Note
If either the response or headers are non-empty, a response with the contents of the buffer (even if empty) will be returned along with the headers.

Member Function Documentation

◆ getBuffer()

const IO::ByteBuffer& ofx::HTTP::PostEventArgs::getBuffer ( ) const
inline

Get the raw POST form data.

Returns
the raw POST form data.

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