File nut/pro/uhttp/responses.c


Included Files


Preprocessor definitions

#define HTTP_NUM_RESPONSES

Typedef HTTP_RESPONSE_STATUS

typedef struct _HTTP_RESPONSE_STATUS HTTP_RESPONSE_STATUS
See: Type struct _HTTP_RESPONSE_STATUS

Type struct _HTTP_RESPONSE_STATUS

struct _HTTP_RESPONSE_STATUS
struct _HTTP_RESPONSE_STATUS  
   {  
      int rs_code;  
      const char* rs_text;  
   }  

Local Variables

response_list
static const HTTP_RESPONSE_STATUS response_list[]
Used in: HttpResponseText()  

Global Function HttpResponseText()

const char* HttpResponseText ( int code )
Called by: HttpSendError() nut/pro/uhttp/responses.c
  HttpSendHeaderTop() nut/pro/uhttp/responses.c
References Variables: response_list nut/pro/uhttp/responses.c

Global Function HttpSendError()

void HttpSendError ( HTTPD_SESSION* hs, int status )
Prototyped in: nut/include/pro/uhttp/uhttpd.h
Calls: HttpResponseText() nut/pro/uhttp/responses.c
  HttpSendHeaderBottom() nut/pro/uhttp/responses.c
  HttpSendHeaderTop() nut/pro/uhttp/responses.c
  strlen() nut/c/string/strlen.c
  s_flush(), s_printf()
Called by: MediaTypeHandlerBinary() nut/pro/uhttp/mediatypes.c

Global Function HttpSendHeaderBottom()

void HttpSendHeaderBottom ( HTTPD_SESSION* hs, char* type, char* subtype, long bytes )
Prototyped in: nut/include/pro/uhttp/uhttpd.h
Calls: s_printf(), s_puts(), s_vputs()
Called by: CgiClock() nut/app/uhttpd_ajax/httpd_ajax.c
  HttpSendError() nut/pro/uhttp/responses.c
  HttpSendRedirection() nut/pro/uhttp/responses.c
  MediaTypeHandlerBinary() nut/pro/uhttp/mediatypes.c

Global Function HttpSendHeaderDate()

void HttpSendHeaderDate ( HTTPD_SESSION* hs, time_t mtime )
Prototyped in: nut/include/pro/uhttp/uhttpd.h
Calls: Rfc1123TimeString() nut/pro/rfctime.c
  gmtime() nut/crt/gmtime.c
  s_vputs()
Called by: MediaTypeHandlerBinary() nut/pro/uhttp/mediatypes.c

Global Function HttpSendHeaderTop()

void HttpSendHeaderTop ( HTTPD_SESSION* hs, int status )
Prototyped in: nut/include/pro/uhttp/uhttpd.h
Calls: HttpResponseText() nut/pro/uhttp/responses.c
  Rfc1123TimeString() nut/pro/rfctime.c
  gmtime() nut/crt/gmtime.c
  time() nut/crt/time.c
  s_printf(), s_vputs()
Called by: CgiClock() nut/app/uhttpd_ajax/httpd_ajax.c
  HttpSendError() nut/pro/uhttp/responses.c
  HttpSendRedirection() nut/pro/uhttp/responses.c
  MediaTypeHandlerBinary() nut/pro/uhttp/mediatypes.c

Global Function HttpSendRedirection()

int HttpSendRedirection ( HTTPD_SESSION* hs, int code, ... )
Prototyped in: nut/include/pro/uhttp/uhttpd.h
Calls: HttpSendHeaderBottom() nut/pro/uhttp/responses.c
  HttpSendHeaderTop() nut/pro/uhttp/responses.c
  free() nut/crt/malloc.c
  malloc() nut/crt/malloc.c
  strcat() nut/c/string/strcat.c
  strlen() nut/c/string/strlen.c
  __builtin_va_arg(), __builtin_va_end(), __builtin_va_start(), s_flush(), s_printf(), s_vputs()