iFun Engine API  1.0.0-b2821
Great Technology for Great Games
 All Classes Files Functions Variables Typedefs Macros
Classes | Typedefs | Enumerations | Functions
http_util.h File Reference
#include <boost/algorithm/string/predicate.hpp>
#include <funapi/types.h>
#include <funapi/utility/misc.h>
#include <map>

Go to the source code of this file.

Classes

struct  fun::http::Request
 Data structure to hold HTTP request. More...
 
struct  fun::http::Request2
 Data structure to hold HTTP request. More...
 
struct  fun::http::Response
 Data structure to hold HTTP response. More...
 
class  fun::http::Uri
 Class to parse an URI string. More...
 

Typedefs

typedef std::map< string,
string,
impl::util::CaseInsensitiveLess > 
fun::http::GetParameter
 Datastructure to hold paramester associated HTTP GET method.
 
typedef std::map< string,
std::vector< string >
, impl::util::CaseInsensitiveLess > 
fun::http::GetParameter2
 Datastructure to hold multiple value paramester associated HTTP GET method.
 
typedef std::multimap< string,
string,
impl::util::CaseInsensitiveLess > 
fun::http::Header
 Datastructure to hold http header fields.
 

Enumerations

enum  Method {
  fun::http::kUnknownMethod = 0, fun::http::kGet, fun::http::kHead, fun::http::kPost,
  fun::http::kPut, fun::http::kDelete, fun::http::kTrace
}
 Enum type representing HTTP methods. More...
 
enum  Protocol { fun::http::kHttp = 0, fun::http::kHttps }
 Enum type representing HTTP protocol type.
 
enum  StatusCode {
  kContinue = 100, kSwitchingProtocols = 101, kOk = 200, kCreated = 201,
  kAccepted = 202, kNonAuthoriativeInformation = 203, kNoContent = 204, kResetContent = 205,
  kPartialContent = 206, kMultipleChoices = 300, kMovedPermanently = 301, kFound = 302,
  kSeeOther = 303, kNotModified = 304, kUseProxy = 305, kTemporaryRedirect = 307,
  kBadRequest = 400, kUnauthorized = 401, kPaymentRequired = 402, kForbidden = 403,
  kNotFound = 404, kMethodNotAllowed = 405, kNotAcceptable = 406, kProxyAuthenticationRequired = 407,
  kRequestTimeout = 408, kConflict = 409, kGone = 410, kLengthRequired = 411,
  kPreconditionFailed = 412, kRequestEntityTooLarge = 413, kRequestUriTooLong = 414, kUnsupportedMediaType = 415,
  kRequestRangeNotSatisfiable = 416, kExpectationFailed = 417, kTooManyRequests = 429, kInternalServerError = 500,
  kNotImplemented = 501, kBadGateway = 502, kServiceUnavailable = 503, kGatewayTimeout = 504,
  kHttpVersionNotSupported = 505
}
 Enum representing HTTP status code. More...
 
enum  Version { fun::http::kUnknownVersion = 0, fun::http::kHttp0, fun::http::kHttp1 }
 Enum type representing HTTP version.
 

Functions

bool fun::http::Escape (const string &plain, string *out)
 Converts the given string to a URL encoded string. More...
 
const string & fun::http::GetMethodString (const Method &method)
 Converts an HTTP method to string. More...
 
const string & fun::http::GetStatusCodeString (int status_code)
 Converts an HTTP status code to string. More...
 
bool fun::http::Unescape (const string &url_encoded, string *out)
 Converts the given string to a URL decoded string. More...