Static Public Member Functions | |
void | buildDefaultHTTPResponseHeader (HttpResponseHeader *) |
int | buildHTTPRequestHeaderStruct (HttpRequestHeader *request, HttpThreadContext *td, char *input=0) |
void | buildHTTPResponseHeader (char *, HttpResponseHeader *) |
int | buildHTTPResponseHeaderStruct (HttpResponseHeader *response, HttpThreadContext *td, char *input=0) |
void | resetHTTPRequest (HttpRequestHeader *request) |
void | resetHTTPResponse (HttpResponseHeader *response) |
int | validHTTPRequest (char *, HttpThreadContext *, u_long *, u_long *) |
int | validHTTPResponse (char *, HttpThreadContext *, u_long *, u_long *) |
|
Set the defaults value for a HttpResponseHeader structure.
|
|
Build the HTTP REQUEST HEADER string. If no input is setted the input is the main buffer of the HttpThreadContext structure. Returns e_200 if is a valid request. Returns -1 if the request is incomplete. Any other returned value is the HTTP error.
|
|
Builds an HTTP header string starting from an HttpResponseHeader structure.
|
|
Build the HTTP RESPONSE HEADER string. If no input is specified the input is the main buffer of the HttpThreadContext structure. Return 0 on invalid input or internal errors.
|
|
Reset all the HTTP_REQUEST_HEADER structure members.
|
|
Reset all the HttpResponseHeader structure members.
|
|
Controls if the req string is a valid HTTP request header. Returns e_200 if is a valid request. Returns -1 if the request is incomplete. Any other returned value is the HTTP error.
|
|
Controls if the req string is a valid HTTP response header. Returns 0 if req is an invalid header, a non-zero value if is a valid header.
|