Network Developers Kit API 3.61.01.01

Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
httpif.h File Reference

Go to the source code of this file.

## Data Structures
struct | _ntparam_http

## Macros
#define | HTTPPORT 80
#define | MAX_RESPONSE_SIZE 200
#define | http400(Sock) httpSendErrorResponse((Sock), HTTP_BAD_REQUEST)
#define | http404(Sock) httpSendErrorResponse((Sock), HTTP_NOT_FOUND)
#define | http405(Sock) httpSendErrorResponse((Sock), HTTP_NOT_ALLOWED)
#define | http501(Sock) httpSendErrorResponse((Sock), HTTP_NOT_IMPLEMENTED)

## Typedefs
typedef struct _ntparam_http | NTPARAM_HTTP

## Enumerations
enum | HTTP_STATUS_CODE { HTTP_OK =200, HTTP_NO_CONTENT =204, HTTP_BAD_REQUEST =400, HTTP_AUTH_REQUIRED =401, HTTP_NOT_FOUND =404, HTTP_NOT_ALLOWED =405, HTTP_NOT_IMPLEMENTED =501, HTTP_STATUS_CODE_END }

## Functions
void * | httpOpen (NTARGS *pNTA, NTPARAM_HTTP *pNTP)
| Create an instance of the HTTP Server. More...
void | httpClose (void *hHTTP)
| Destroy an instance of the HTTP Server. More...
int | httpVersion (void)
void | httpSendClientStr (SOCKET Sock, char *Response)
void | httpSendStatusLine (SOCKET Sock, int StatusCode, char *ContentType)
void | httpSendFullResponse (SOCKET Sock, int StatusCode, char *RequestedFile)
void | httpSendEntityLength (SOCKET Sock, int32_t EntityLength)
void | httpSendErrorResponse (SOCKET Sock, int StatusCode)

## Variables
char * | CONTENT_TYPE_APPLET
char * | CONTENT_TYPE_AU
char * | CONTENT_TYPE_CSS
char * | CONTENT_TYPE_DOC
char * | CONTENT_TYPE_GIF
char * | CONTENT_TYPE_HTML
char * | CONTENT_TYPE_JPG
char * | CONTENT_TYPE_MPEG
char * | CONTENT_TYPE_PDF
char * | CONTENT_TYPE_WAV
char * | CONTENT_TYPE_ZIP
char * | CONTENT_TYPE
char * | CONTENT_LENGTH
char * | CRLF
char * | DEFAULT_NAME
char * | HTTP_VER
char * | SPACE
int(* | httpErrorResponseHook )(SOCKET Sock, int StatusCode)

© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale