The HTTP Server service provides a mechanism for serving HTTP content to remote HTTP client applications.
More...
The HTTP Server service provides a mechanism for serving HTTP content to remote HTTP client applications.
- Deprecated:
- The HTTP Server support in the NDK is deprecated and will be removed in the near future. Users are highly recommended to migrate to the HTTPServer module provided by the Network Services (NS) Component.
§ HTTPPORT
§ MAX_RESPONSE_SIZE
#define MAX_RESPONSE_SIZE 200 |
§ http400
§ http404
§ http405
§ http501
§ NTPARAM_HTTP
§ CI_SERVICE_HTTP
- Deprecated:
- The HTTP Server support in the NDK is deprecated and will be removed in the near future. Users are highly recommended to migrate to the HTTPServer module provided by the Network Services (NS) Component.
§ HTTP_STATUS_CODE
Enumerator |
---|
HTTP_OK | |
HTTP_NO_CONTENT | |
HTTP_BAD_REQUEST | |
HTTP_AUTH_REQUIRED | |
HTTP_NOT_FOUND | |
HTTP_NOT_ALLOWED | |
HTTP_NOT_IMPLEMENTED | |
HTTP_STATUS_CODE_END | |
§ httpOpen()
Create an instance of the HTTP Server.
- Deprecated:
- The HTTP Server support in the NDK is deprecated and will be removed in the near future. Users are highly recommended to migrate to the HTTPServer module provided by the Network Services (NS) Component.
- Parameters
-
[in] | pNTA | Pointer to common arg structure used for all services |
[in] | pNTP | Pointer to HTTP parameter structure |
- Returns
- Success: handle to new HTTP Server instance
-
Failure: NULL
- See also
- httpClose()
§ httpClose()
void httpClose |
( |
void * |
hHTTP | ) |
|
Destroy an instance of the HTTP Server.
- Deprecated:
- The HTTP Server support in the NDK is deprecated and will be removed in the near future. Users are highly recommended to migrate to the HTTPServer module provided by the Network Services (NS) Component.
- Parameters
-
[in] | hHTTP | Handle to HTTP Server instance obtained from httpOpen() |
- See also
- httpOpen()
§ httpVersion()
§ httpSendClientStr()
void httpSendClientStr |
( |
SOCKET |
Sock, |
|
|
char * |
Response |
|
) |
| |
§ httpSendStatusLine()
void httpSendStatusLine |
( |
SOCKET |
Sock, |
|
|
int |
StatusCode, |
|
|
char * |
ContentType |
|
) |
| |
§ httpSendFullResponse()
void httpSendFullResponse |
( |
SOCKET |
Sock, |
|
|
int |
StatusCode, |
|
|
char * |
RequestedFile |
|
) |
| |
§ httpSendEntityLength()
void httpSendEntityLength |
( |
SOCKET |
Sock, |
|
|
int32_t |
EntityLength |
|
) |
| |
§ httpSendErrorResponse()
void httpSendErrorResponse |
( |
SOCKET |
Sock, |
|
|
int |
StatusCode |
|
) |
| |
§ CONTENT_TYPE_APPLET
char* CONTENT_TYPE_APPLET |
§ CONTENT_TYPE_AU
§ CONTENT_TYPE_CSS
§ CONTENT_TYPE_DOC
§ CONTENT_TYPE_GIF
§ CONTENT_TYPE_HTML
§ CONTENT_TYPE_JPG
§ CONTENT_TYPE_MPEG
§ CONTENT_TYPE_PDF
§ CONTENT_TYPE_WAV
§ CONTENT_TYPE_ZIP
§ CONTENT_TYPE
§ CONTENT_LENGTH
§ CRLF
§ DEFAULT_NAME
§ HTTP_VER
§ SPACE
§ httpErrorResponseHook
int(* httpErrorResponseHook) (SOCKET Sock, int StatusCode) |