Nut/OS  5.0.5
API Reference
responses.c File Reference
#include <pro/rfctime.h>
#include <pro/uhttp/uhttpd.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
Include dependency graph for responses.c:

Data Structures

struct  _HTTP_RESPONSE_STATUS

Defines

#define HTTP_NUM_RESPONSES   (sizeof(response_list) / sizeof(HTTP_RESPONSE_STATUS))

Typedefs

typedef struct
_HTTP_RESPONSE_STATUS 
HTTP_RESPONSE_STATUS

Functions

const char * HttpResponseText (int code)
void HttpSendHeaderTop (HTTPD_SESSION *hs, int status)
 Send initial HTTP response header.
void HttpSendHeaderDate (HTTPD_SESSION *hs, time_t mtime)
 Send HTTP date response header.
void HttpSendHeaderBottom (HTTPD_SESSION *hs, char *type, char *subtype, long bytes)
 Send final HTTP response header.
void HttpSendError (HTTPD_SESSION *hs, int status)
 Send HTTP error response.
int HttpSendRedirection (HTTPD_SESSION *hs, int code,...)
 Transmit a redirection page.

Define Documentation

#define HTTP_NUM_RESPONSES   (sizeof(response_list) / sizeof(HTTP_RESPONSE_STATUS))

Referenced by HttpResponseText().


Typedef Documentation


Function Documentation

const char* HttpResponseText ( int  code)