WEBBY - the embedded web server with many faces / objects in plain C Snapshot
Classes | Typedefs | Functions
HTTP_servlet_request
HTTP_SERVLET

represents the http request and includes methods to access the request header and request body. More...

Collaboration diagram for HTTP_servlet_request:

Classes

struct  tagHTTP_servlet_request

Typedefs

typedef struct
tagHTTP_servlet_request 
HTTP_servlet_request

Functions

M_INLINE Http_version_type HTTP_servlet_protocol (HTTP_servlet_request *req)
M_INLINE Http_method_type HTTP_servlet_method (HTTP_servlet_request *req)
M_INLINE URI * HTTP_servlet_uri (HTTP_servlet_request *req)
M_INLINE const char * HTTP_servlet_find_header (HTTP_servlet_request *req, const char *header_name)
M_INLINE STRINGPAIR * HTTP_servlet_first_header (HTTP_servlet_request *req, DLISTUNR_position *pos)
M_INLINE STRINGPAIR * HTTP_servlet_next_header (HTTP_servlet_request *req, DLISTUNR_position *pos)
M_INLINE DBUF * HTTP_servlet_data (HTTP_servlet_request *req)

Detailed Description

represents the http request and includes methods to access the request header and request body.


Typedef Documentation


Function Documentation

M_INLINE DBUF* HTTP_servlet_data ( HTTP_servlet_request req)

Definition at line 282 of file webby.h.

                                                                { 
  return req->request_data;
}
M_INLINE const char* HTTP_servlet_find_header ( HTTP_servlet_request req,
const char *  header_name 
)

Definition at line 270 of file webby.h.

                                                                                                     {
  return HTTP_MESSAGE_find_header( &req->request->base, header_name );
}
M_INLINE STRINGPAIR* HTTP_servlet_first_header ( HTTP_servlet_request req,
DLISTUNR_position *  pos 
)

Definition at line 274 of file webby.h.

                                                                                                     { 
  return HTTP_MESSAGE_first_header(  &req->request->base, pos );
}
M_INLINE Http_method_type HTTP_servlet_method ( HTTP_servlet_request req)

Definition at line 260 of file webby.h.

{
  return req->request->method;
}
M_INLINE STRINGPAIR* HTTP_servlet_next_header ( HTTP_servlet_request req,
DLISTUNR_position *  pos 
)

Definition at line 278 of file webby.h.

                                                                                                    { 
  return HTTP_MESSAGE_next_header(  &req->request->base, pos );
}
M_INLINE Http_version_type HTTP_servlet_protocol ( HTTP_servlet_request req)

Definition at line 255 of file webby.h.

{ 
  return req->request->version; 
}
M_INLINE URI* HTTP_servlet_uri ( HTTP_servlet_request req)

Definition at line 265 of file webby.h.

{
  return &req->request->url;
}