HTTP Request Stream

The HTTP Request stream generates a HTTP request header and writes it to the target which is normally a HTWriter stream.

This module is implemented by HTTPReq.c, and it is a part of the W3C Reference Library.

#ifndef HTTPREQ_H
#define HTTPREQ_H

#include "HTStream.h"
#include "HTReq.h"

Streams Definition

This stream makes a HTTP request header before it goes into transparent mode.
typedef enum _HTTPVersion {
    HTTP = 0,
    HTTP_09,		
    HTTP_10,
    HTTP_11,
    HTTP_12
} HTTPVersion;

extern HTStream * HTTPRequest_new (HTRequest * request, HTStream * target);
#endif
End of HTTPReq