Sun Java System Web Proxy Server 4.0.11 NSAPI Developer's Guide


Under HTTP protocol, only one request is made per session. The request structure contains the variables that apply to the request in that session, for example, the variables include the client’s HTTP headers.

typedef struct {
    /* Server working variables */
    pblock *vars;

    /* The method, URI, and protocol revision of this request */
    block *reqpb;

    /* Protocol specific headers */
    int loadhdrs;
    pblock *headers;

    /* Server’s response headers */
    int senthdrs;
    pblock *srvhdrs;

    /* The object set constructed to fulfill this request */
    httpd_objset *os;
} Request;