summaryrefslogtreecommitdiff
path: root/src/reqp.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:48 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:48 +0200
commit4ecbf33fae730bc79c4a47e6efda615b104754ad (patch)
treedd59412b6d8bea88995211f60b786728ac30acc4 /src/reqp.h
parentbf5fc4cc4a15e8e57db58c2e065e0f5adbd8e800 (diff)
tagging ychat-0.7.8ychat-0.7.8
Diffstat (limited to 'src/reqp.h')
-rwxr-xr-xsrc/reqp.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/reqp.h b/src/reqp.h
index 5a378fa..4c322cd 100755
--- a/src/reqp.h
+++ b/src/reqp.h
@@ -13,12 +13,11 @@ private:
static const string s_http_stream;
static const string s_http_colength;
static const string s_http_cotype;
- static const string s_http_cotype_add;
// returns the request url from thr client's http request header
// until the first "?" and stores all request parameter values
// ( behind "?" ) into map_params.
- string get_url( string s_req, map<string,string> &map_params, int& i_postpayloadoffset );
+ string get_url( int &i_sock, string s_req, map<string,string> &map_params );
// returns a specific value of the client's http request header.
// ( s.t. like the User-Agent, Referer etc... ).
string get_from_header( string s_req, string s_hdr );
@@ -33,9 +32,9 @@ private:
public:
reqp( );
- string parse( socketcontainer* p_sock, string s_req, map<string,string> &map_params, int &i_postpayloadoffset );
+ string parse( int &i_sock, string s_req, map<string,string> &map_params );
string url_decode ( string s_url );
- string get_content_type( string& s_file );
+ string get_content_type( string s_file );
void parse_headers( string s_req, map<string,string> &map_params );
};