neo::network::HTTPProtocol Class Reference

#include <network/http.h>

List of all members.


Detailed Description

Simple methods for HTTP I/O
Author:
Mattias Jansson (mattias@realityrift.com)


Static Public Member Functions

static Socketget (const std::string &url, const std::string &headers="")
 GET request.
static Socketpost (const std::string &url, const void *p_data, unsigned int length, const std::string &headers="")
 POST request.

Static Protected Member Functions

static Socketopen (const std::string &url, const std::string &headers, const std::string &cmd)
 Base request method.


Member Function Documentation

static Socket* neo::network::HTTPProtocol::get ( const std::string &  url,
const std::string &  headers = "" 
) [static]

Parameters:
url URL
headers Extra headers
Returns:
Socket, null if error

static Socket* neo::network::HTTPProtocol::post ( const std::string &  url,
const void *  p_data,
unsigned int  length,
const std::string &  headers = "" 
) [static]

Parameters:
url URL
p_data Data
length Data length
headers Extra headers
Returns:
Socket, null if error

static Socket* neo::network::HTTPProtocol::open ( const std::string &  url,
const std::string &  headers,
const std::string &  cmd 
) [static, protected]

Parameters:
url URL
headers Extra headers
cmd Request command
Returns:
Socket, null if error


The documentation for this class was generated from the following file:
Generated on Sat Feb 17 20:51:06 2007 for NeoEngine 2 - Evolution by  doxygen 1.5.1