Savarese Software Research Corporation
fcgi Namespace Reference

The fcgi namespace contains services that bridge between FCGI requests and the WSPR. More...

Classes

class  FCGIRequest
class  FCGIResponse
struct  FCGIServiceInitializer
class  FCGIServiceOptions
struct  HTTPRequest
struct  HTTPResponse
 Abstract class defining the interface for a response to an HTTP request. More...
class  HTTPServlet
class  FCGIAcceptHandler
class  FCGIServiceEventHandler
class  URI

Typedefs

typedef boost::shared_ptr
< FCGI::FCGX_Request > 
fcgx_request_ptr
typedef
std::unordered_multimap
< std::string, std::string > 
parameter_map

Enumerations

enum  HTTPRequestMethod {
  MethodDelete, MethodGet, MethodHead, MethodOptions,
  MethodPost, MethodPut, MethodTrace, MethodMax = MethodTrace,
  MethodUndefined
}
enum  HTTPStatusCode {
  StatusOK = 200, StatusFound = 302, StatusBadRequest = 400, StatusUnauthorized = 401,
  StatusPaymentRequired = 402, StatusForbidden = 403, StatusNotFound = 404, StatusMethodNotAllowed = 405,
  StatusNotAcceptable = 406, StatusProxyAuthenticationRequired = 407, StatusRequestTimeout = 408, StatusConflict = 409,
  StatusGone = 410, StatusLengthRequired = 411, StatusPreconditionFailed = 412, StatusRequestEntityTooLarge = 413,
  StatusRequestURITooLong = 414, StatusInternalServerError = 500, StatusMethodNotImplemented = 501, StatusBadGateway = 502,
  StatusServiceUnavailable = 503, StatusGatewayTimeout = 504
}
 Defines HTTP status codes. More...

Functions

string parse_header_attribute (const string &header_value, const string &attribute, string::size_type pos, string::size_type *end)
void parse_query_string (const string &query_str, parameter_map &parameters)
void parse_multipart_data (const string &data, const string &boundary, parameter_map &parameters)
void parse_get_parameters (const FCGIRequest &request, parameter_map &parameters)
void parse_post_parameters (const FCGIRequest &request, parameter_map &parameters)

Variables

const
FCGIRequest::HTTPRequestMethodMap
FCGIRequest::RequestMethodMap
&[0][MethodNum
RequestMethodName
const int PORT_HTTP = 80
const int PORT_HTTPS = 443
const unsigned int MethodNum = MethodMax + 1
const bool CacheDisable = true
const bool CacheEnable = false
const int FCGIDescriptorDefault = 0

Detailed Description

The fcgi namespace contains services that bridge between FCGI requests and the WSPR.


Typedef Documentation

typedef boost::shared_ptr<FCGI::FCGX_Request> fcgi::fcgx_request_ptr

Definition at line 45 of file FCGIRequest.h.

typedef std::unordered_multimap<std::string, std::string> fcgi::parameter_map

Definition at line 32 of file parameter_map.h.


Enumeration Type Documentation

Enumerator:
MethodDelete 
MethodGet 
MethodHead 
MethodOptions 
MethodPost 
MethodPut 
MethodTrace 
MethodMax 
MethodUndefined 

Definition at line 33 of file HTTPRequest.h.

Defines HTTP status codes.

Enumerator:
StatusOK 
StatusFound 
StatusBadRequest 
StatusUnauthorized 
StatusPaymentRequired 
StatusForbidden 
StatusNotFound 
StatusMethodNotAllowed 
StatusNotAcceptable 
StatusProxyAuthenticationRequired 
StatusRequestTimeout 
StatusConflict 
StatusGone 
StatusLengthRequired 
StatusPreconditionFailed 
StatusRequestEntityTooLarge 
StatusRequestURITooLong 
StatusInternalServerError 
StatusMethodNotImplemented 
StatusBadGateway 
StatusServiceUnavailable 
StatusGatewayTimeout 

Definition at line 37 of file HTTPResponse.h.


Function Documentation

void fcgi::parse_get_parameters ( const FCGIRequest &  request,
parameter_map &  parameters 
)
string fcgi::parse_header_attribute ( const string &  header_value,
const string &  attribute,
string::size_type  pos,
string::size_type *  end 
)

Definition at line 27 of file parse_query.cc.

Referenced by parse_multipart_data(), and parse_post_parameters().

void fcgi::parse_multipart_data ( const string &  data,
const string &  boundary,
parameter_map &  parameters 
)

Definition at line 109 of file parse_query.cc.

References parse_header_attribute(), and database::detail::step().

Referenced by parse_post_parameters().

void fcgi::parse_post_parameters ( const FCGIRequest &  request,
parameter_map &  parameters 
)
void fcgi::parse_query_string ( const string &  query_str,
parameter_map &  parameters 
)

Definition at line 69 of file parse_query.cc.

References utility::unescape_url(), and database::value().

Referenced by parse_get_parameters(), and parse_post_parameters().


Variable Documentation

const bool fcgi::CacheDisable = true

Definition at line 62 of file HTTPResponse.h.

Referenced by renderer::Renderer::send_error().

const bool fcgi::CacheEnable = false

Definition at line 63 of file HTTPResponse.h.

Definition at line 39 of file fcgi/service.h.

const unsigned int fcgi::MethodNum = MethodMax + 1
const int fcgi::PORT_HTTP = 80

Definition at line 42 of file FCGIRequest.h.

const int fcgi::PORT_HTTPS = 443

Definition at line 43 of file FCGIRequest.h.

const char *const fcgi::RequestMethodName
Initial value:
 {
  "DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT", "TRACE"
}

Definition at line 25 of file FCGIRequest.cc.


Savarese Software Research Corporation
Copyright © 2006-2011 Savarese Software Research Corporation. All rights reserved.