/* ** (c) COPYRIGHT MIT 1995. ** Please first read the full copyright statement in the file COPYRIGH. */
This is the HTTP client module. This is actually a very small definition file as almost everything is set up elsewhere.
This module is implemented by HTTP.c, and it is a part of the W3C Sample Code Library.
#ifndef HTTP_H #define HTTP_H #include "HTProt.h" #include "HTStream.h"
The HTTP client module supports various modes for communicating with HTTP servers. The mode are defined by the enumeration below.
typedef enum _HTTPConnectionMode { HTTP_NO_PIPELINING = 0x1, HTTP_FORCE_10 = 0x2 } HTTPConnectionMode; extern void HTTP_setConnectionMode (HTTPConnectionMode mode); extern HTTPConnectionMode HTTP_connectionMode (void);
The event handler is the actual HTTP client state machine taking care of the communication.
extern HTProtCallback HTLoadHTTP; extern HTConverter HTTPStatus_new; #endif /* HTTP_H */