reason_phrase.c File Reference

Tables of the string response phrases. More...

#include "reason_phrase.h"

Include dependency graph for reason_phrase.c:

Go to the source code of this file.

Defines

#define BLOCK(m)   { (sizeof(m) / sizeof(char*)), m }

Functions

const char * MHD_get_reason_phrase_for (unsigned int code)

Variables

static const char * invalid_hundred [] = { }
static const char * one_hundred []
static const char * two_hundred []
static const char * three_hundred []
static const char * four_hundred []
static const char * five_hundred []
static struct MHD_Reason_Block reasons []


Detailed Description

Tables of the string response phrases.

Author:
Elliot Glaysher

Christian Grothoff (minor code clean up)

Elliot Glaysher

Definition in file reason_phrase.c.


Define Documentation

#define BLOCK (  )     { (sizeof(m) / sizeof(char*)), m }

Definition at line 92 of file reason_phrase.c.


Function Documentation

const char* MHD_get_reason_phrase_for ( unsigned int  code  ) 

Returns the string reason phrase for a response code.

If we don't have a string for a status code, we give the first message in that status code class.

Definition at line 104 of file reason_phrase.c.

Referenced by build_header_response().

Here is the caller graph for this function:


Variable Documentation

const char* five_hundred[] [static]

Initial value:

 {
  "Internal Server Error",
  "Bad Gateway",
  "Service Unavailable",
  "Gateway Time-out",
  "HTTP Version not supported"
}

Definition at line 77 of file reason_phrase.c.

const char* four_hundred[] [static]

Initial value:

 {
  "Bad Request",
  "Unauthorized",
  "Payment Required",
  "Forbidden",
  "Not Found",
  "Method Not Allowed",
  "Not Acceptable",
  "Proxy Authentication Required",
  "Request Time-out",
  "Conflict",
  "Gone",
  "Length Required",
  "Precondition Failed",
  "Request Entity Too Large",
  "Request-URI Too Large",
  "Unsupported Media Type"
}

Definition at line 58 of file reason_phrase.c.

const char* invalid_hundred[] = { } [static]

Definition at line 31 of file reason_phrase.c.

const char* one_hundred[] [static]

Initial value:

 {
  "Continue",
  "Switching Protocols",
  "Processing"
}

Definition at line 33 of file reason_phrase.c.

struct MHD_Reason_Block reasons[] [static]

const char* three_hundred[] [static]

Initial value:

 {
  "Multiple Choices",
  "Moved Permanently",
  "Moved Temporarily",
  "See Other",
  "Not Modified",
  "Use Proxy"
}

Definition at line 49 of file reason_phrase.c.

const char* two_hundred[] [static]

Initial value:

 {
  "OK",
  "Created",
  "Accepted",
  "Non-Authoritative Information",
  "No Content",
  "Reset Content",
  "Partial Content"
}

Definition at line 39 of file reason_phrase.c.


Generated on Fri Oct 3 15:57:47 2008 for GNU libmicrohttpd by  doxygen 1.5.6