microhttpd.h File Reference

public interface to libmicrohttpd More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  MHD_ConnectionInfo
union  MHD_DaemonInfo

Defines

#define MHD_VERSION   0x00040000
#define MHD_YES   1
#define MHD_NO   0
#define MHD_HTTP_CONTINUE   100
#define MHD_HTTP_SWITCHING_PROTOCOLS   101
#define MHD_HTTP_PROCESSING   102
#define MHD_HTTP_OK   200
#define MHD_HTTP_CREATED   201
#define MHD_HTTP_ACCEPTED   202
#define MHD_HTTP_NON_AUTHORITATIVE_INFORMATION   203
#define MHD_HTTP_NO_CONTENT   204
#define MHD_HTTP_RESET_CONTENT   205
#define MHD_HTTP_PARTIAL_CONTENT   206
#define MHD_HTTP_MULTI_STATUS   207
#define MHD_HTTP_MULTIPLE_CHOICES   300
#define MHD_HTTP_MOVED_PERMANENTLY   301
#define MHD_HTTP_FOUND   302
#define MHD_HTTP_SEE_OTHER   303
#define MHD_HTTP_NOT_MODIFIED   304
#define MHD_HTTP_USE_PROXY   305
#define MHD_HTTP_SWITCH_PROXY   306
#define MHD_HTTP_TEMPORARY_REDIRECT   307
#define MHD_HTTP_BAD_REQUEST   400
#define MHD_HTTP_UNAUTHORIZED   401
#define MHD_HTTP_PAYMENT_REQUIRED   402
#define MHD_HTTP_FORBIDDEN   403
#define MHD_HTTP_NOT_FOUND   404
#define MHD_HTTP_METHOD_NOT_ALLOWED   405
#define MHD_HTTP_METHOD_NOT_ACCEPTABLE   406
#define MHD_HTTP_PROXY_AUTHENTICATION_REQUIRED   407
#define MHD_HTTP_REQUEST_TIMEOUT   408
#define MHD_HTTP_CONFLICT   409
#define MHD_HTTP_GONE   410
#define MHD_HTTP_LENGTH_REQUIRED   411
#define MHD_HTTP_PRECONDITION_FAILED   412
#define MHD_HTTP_REQUEST_ENTITY_TOO_LARGE   413
#define MHD_HTTP_REQUEST_URI_TOO_LONG   414
#define MHD_HTTP_UNSUPPORTED_MEDIA_TYPE   415
#define MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE   416
#define MHD_HTTP_EXPECTATION_FAILED   417
#define MHD_HTTP_UNPROCESSABLE_ENTITY   422
#define MHD_HTTP_LOCKED   423
#define MHD_HTTP_FAILED_DEPENDENCY   424
#define MHD_HTTP_UNORDERED_COLLECTION   425
#define MHD_HTTP_UPGRADE_REQUIRED   426
#define MHD_HTTP_RETRY_WITH   449
#define MHD_HTTP_INTERNAL_SERVER_ERROR   500
#define MHD_HTTP_NOT_IMPLEMENTED   501
#define MHD_HTTP_BAD_GATEWAY   502
#define MHD_HTTP_SERVICE_UNAVAILABLE   503
#define MHD_HTTP_GATEWAY_TIMEOUT   504
#define MHD_HTTP_HTTP_VERSION_NOT_SUPPORTED   505
#define MHD_HTTP_VARIANT_ALSO_NEGOTIATES   506
#define MHD_HTTP_INSUFFICIENT_STORAGE   507
#define MHD_HTTP_BANDWIDTH_LIMIT_EXCEEDED   509
#define MHD_HTTP_NOT_EXTENDED   510
#define MHD_HTTP_HEADER_ACCEPT   "Accept"
#define MHD_HTTP_HEADER_ACCEPT_CHARSET   "Accept-Charset"
#define MHD_HTTP_HEADER_ACCEPT_ENCODING   "Accept-Encoding"
#define MHD_HTTP_HEADER_ACCEPT_LANGUAGE   "Accept-Language"
#define MHD_HTTP_HEADER_ACCEPT_RANGES   "Accept-Ranges"
#define MHD_HTTP_HEADER_AGE   "Age"
#define MHD_HTTP_HEADER_ALLOW   "Allow"
#define MHD_HTTP_HEADER_AUTHORIZATION   "Authorization"
#define MHD_HTTP_HEADER_CACHE_CONTROL   "Cache-Control"
#define MHD_HTTP_HEADER_CONNECTION   "Connection"
#define MHD_HTTP_HEADER_CONTENT_ENCODING   "Content-Encoding"
#define MHD_HTTP_HEADER_CONTENT_LANGUAGE   "Content-Language"
#define MHD_HTTP_HEADER_CONTENT_LENGTH   "Content-Length"
#define MHD_HTTP_HEADER_CONTENT_LOCATION   "Content-Location"
#define MHD_HTTP_HEADER_CONTENT_MD5   "Content-MD5"
#define MHD_HTTP_HEADER_CONTENT_RANGE   "Content-Range"
#define MHD_HTTP_HEADER_CONTENT_TYPE   "Content-Type"
#define MHD_HTTP_HEADER_DATE   "Date"
#define MHD_HTTP_HEADER_ETAG   "ETag"
#define MHD_HTTP_HEADER_EXPECT   "Expect"
#define MHD_HTTP_HEADER_EXPIRES   "Expires"
#define MHD_HTTP_HEADER_FROM   "From"
#define MHD_HTTP_HEADER_HOST   "Host"
#define MHD_HTTP_HEADER_IF_MATCH   "If-Match"
#define MHD_HTTP_HEADER_IF_MODIFIED_SINCE   "If-Modified-Since"
#define MHD_HTTP_HEADER_IF_NONE_MATCH   "If-None-Match"
#define MHD_HTTP_HEADER_IF_RANGE   "If-Range"
#define MHD_HTTP_HEADER_IF_UNMODIFIED_SINCE   "If-Unmodified-Since"
#define MHD_HTTP_HEADER_LAST_MODIFIED   "Last-Modified"
#define MHD_HTTP_HEADER_LOCATION   "Location"
#define MHD_HTTP_HEADER_MAX_FORWARDS   "Max-Forwards"
#define MHD_HTTP_HEADER_PRAGMA   "Pragma"
#define MHD_HTTP_HEADER_PROXY_AUTHENTICATE   "Proxy-Authenticate"
#define MHD_HTTP_HEADER_PROXY_AUTHORIZATION   "Proxy-Authorization"
#define MHD_HTTP_HEADER_RANGE   "Range"
#define MHD_HTTP_HEADER_REFERER   "Referer"
#define MHD_HTTP_HEADER_RETRY_AFTER   "Retry-After"
#define MHD_HTTP_HEADER_SERVER   "Server"
#define MHD_HTTP_HEADER_TE   "TE"
#define MHD_HTTP_HEADER_TRAILER   "Trailer"
#define MHD_HTTP_HEADER_TRANSFER_ENCODING   "Transfer-Encoding"
#define MHD_HTTP_HEADER_UPGRADE   "Upgrade"
#define MHD_HTTP_HEADER_USER_AGENT   "User-Agent"
#define MHD_HTTP_HEADER_VARY   "Vary"
#define MHD_HTTP_HEADER_VIA   "Via"
#define MHD_HTTP_HEADER_WARNING   "Warning"
#define MHD_HTTP_HEADER_WWW_AUTHENTICATE   "WWW-Authenticate"
#define MHD_HTTP_VERSION_1_0   "HTTP/1.0"
#define MHD_HTTP_VERSION_1_1   "HTTP/1.1"
#define MHD_HTTP_METHOD_CONNECT   "CONNECT"
#define MHD_HTTP_METHOD_DELETE   "DELETE"
#define MHD_HTTP_METHOD_GET   "GET"
#define MHD_HTTP_METHOD_HEAD   "HEAD"
#define MHD_HTTP_METHOD_OPTIONS   "OPTIONS"
#define MHD_HTTP_METHOD_POST   "POST"
#define MHD_HTTP_METHOD_PUT   "PUT"
#define MHD_HTTP_METHOD_TRACE   "TRACE"
#define MHD_HTTP_POST_ENCODING_FORM_URLENCODED   "application/x-www-form-urlencoded"
#define MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA   "multipart/form-data"

Typedefs

typedef int(*) MHD_AcceptPolicyCallback (void *cls, const struct sockaddr *addr, socklen_t addrlen)
typedef int(*) MHD_AccessHandlerCallback (void *cls, struct MHD_Connection *connection, const char *url, const char *method, const char *version, const char *upload_data, unsigned int *upload_data_size, void **con_cls)
typedef void(*) MHD_RequestCompletedCallback (void *cls, struct MHD_Connection *connection, void **con_cls, enum MHD_RequestTerminationCode toe)
typedef int(*) MHD_KeyValueIterator (void *cls, enum MHD_ValueKind kind, const char *key, const char *value)
typedef int(*) MHD_ContentReaderCallback (void *cls, size_t pos, char *buf, int max)
typedef void(*) MHD_ContentReaderFreeCallback (void *cls)
typedef int(*) MHD_PostDataIterator (void *cls, enum MHD_ValueKind kind, const char *key, const char *filename, const char *content_type, const char *transfer_encoding, const char *data, size_t off, size_t size)

Enumerations

enum  MHD_FLAG {
  MHD_NO_FLAG = 0, MHD_USE_DEBUG = 1, MHD_USE_SSL = 2, MHD_USE_THREAD_PER_CONNECTION = 4,
  MHD_USE_SELECT_INTERNALLY = 8, MHD_USE_IPv6 = 16, MHD_USE_PEDANTIC_CHECKS = 32
}
enum  MHD_OPTION {
  MHD_OPTION_END = 0, MHD_OPTION_CONNECTION_MEMORY_LIMIT = 1, MHD_OPTION_CONNECTION_LIMIT = 2, MHD_OPTION_CONNECTION_TIMEOUT = 3,
  MHD_OPTION_NOTIFY_COMPLETED = 4, MHD_OPTION_PER_IP_CONNECTION_LIMIT = 5, MHD_OPTION_SOCK_ADDR = 6, MHD_OPTION_URI_LOG_CALLBACK = 7,
  MHD_OPTION_HTTPS_MEM_KEY = 9, MHD_OPTION_HTTPS_MEM_CERT = 10, MHD_OPTION_CRED_TYPE = 11, MHD_OPTION_PROTOCOL_VERSION = 12,
  MHD_OPTION_CIPHER_ALGORITHM = 13, MHD_OPTION_KX_PRIORITY = 14, MHD_OPTION_CERT_TYPE = 15, MHD_OPTION_MAC_ALGO = 16,
  MHD_OPTION_TLS_COMP_ALGO = 17, MHD_HTTPS_OPTION_END = -1
}
enum  MHD_ValueKind {
  MHD_RESPONSE_HEADER_KIND = 0, MHD_HEADER_KIND = 1, MHD_COOKIE_KIND = 2, MHD_POSTDATA_KIND = 4,
  MHD_GET_ARGUMENT_KIND = 8, MHD_FOOTER_KIND = 16
}
enum  MHD_RequestTerminationCode { MHD_REQUEST_TERMINATED_COMPLETED_OK = 0, MHD_REQUEST_TERMINATED_WITH_ERROR = 1, MHD_REQUEST_TERMINATED_TIMEOUT_REACHED = 2, MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN = 3 }
enum  MHD_GNUTLS_CipherAlgorithm {
  MHD_GNUTLS_CIPHER_UNKNOWN = 0, MHD_GNUTLS_CIPHER_NULL = 1, MHD_GNUTLS_CIPHER_ARCFOUR_128, MHD_GNUTLS_CIPHER_3DES_CBC,
  MHD_GNUTLS_CIPHER_AES_128_CBC, MHD_GNUTLS_CIPHER_AES_256_CBC, MHD_GNUTLS_CIPHER_ARCFOUR_40, MHD_GNUTLS_CIPHER_RC2_40_CBC = 90,
  MHD_GNUTLS_CIPHER_DES_CBC
}
enum  MHD_GNUTLS_KeyExchangeAlgorithm {
  MHD_GNUTLS_KX_UNKNOWN = 0, MHD_GNUTLS_KX_RSA = 1, MHD_GNUTLS_KX_DHE_DSS, MHD_GNUTLS_KX_DHE_RSA,
  MHD_GNUTLS_KX_SRP, MHD_GNUTLS_KX_RSA_EXPORT, MHD_GNUTLS_KX_SRP_RSA, MHD_GNUTLS_KX_SRP_DSS
}
enum  MHD_GNUTLS_CredentialsType { MHD_GNUTLS_CRD_CERTIFICATE = 1 }
enum  MHD_GNUTLS_HashAlgorithm {
  MHD_GNUTLS_MAC_UNKNOWN = 0, MHD_GNUTLS_MAC_NULL = 1, MHD_GNUTLS_MAC_MD5, MHD_GNUTLS_MAC_SHA1,
  MHD_GNUTLS_MAC_SHA256
}
enum  MHD_GNUTLS_CompressionMethod { MHD_GNUTLS_COMP_UNKNOWN = 0, MHD_GNUTLS_COMP_NULL = 1, MHD_GNUTLS_COMP_DEFLATE }
enum  MHD_GNUTLS_Protocol {
  MHD_GNUTLS_PROTOCOL_END = 0, MHD_GNUTLS_PROTOCOL_SSL3 = 1, MHD_GNUTLS_PROTOCOL_TLS1_0, MHD_GNUTLS_PROTOCOL_TLS1_1,
  MHD_GNUTLS_PROTOCOL_TLS1_2, MHD_GNUTLS_PROTOCOL_VERSION_UNKNOWN = 0xff
}
enum  MHD_GNUTLS_CertificateType { MHD_GNUTLS_CRT_UNKNOWN = 0, MHD_GNUTLS_CRT_X509 = 1 }
enum  MHD_GNUTLS_PublicKeyAlgorithm { MHD_GNUTLS_PK_UNKNOWN = 0, MHD_GNUTLS_PK_RSA = 1 }
enum  MHD_ConnectionInfoType {
  MHD_CONNECTION_INFO_CIPHER_ALGO, MHD_CONNECTION_INFO_KX_ALGO, MHD_CONNECTION_INFO_CREDENTIALS_TYPE, MHD_CONNECTION_INFO_MAC_ALGO,
  MHD_CONNECTION_INFO_COMPRESSION_METHOD, MHD_CONNECTION_INFO_PROTOCOL, MHD_CONNECTION_INFO_CERT_TYPE
}
enum  MHD_DaemonInfoType { MHD_DAEMON_INFO_KEY_SIZE, MHD_DAEMON_INFO_MAC_KEY_SIZE }

Functions

MHD_DaemonMHD_start_daemon_va (unsigned int options, unsigned short port, MHD_AcceptPolicyCallback apc, void *apc_cls, MHD_AccessHandlerCallback dh, void *dh_cls, va_list ap)
MHD_DaemonMHD_start_daemon (unsigned int flags, unsigned short port, MHD_AcceptPolicyCallback apc, void *apc_cls, MHD_AccessHandlerCallback dh, void *dh_cls,...)
void MHD_stop_daemon (struct MHD_Daemon *daemon)
int MHD_get_fdset (struct MHD_Daemon *daemon, fd_set *read_fd_set, fd_set *write_fd_set, fd_set *except_fd_set, int *max_fd)
int MHD_get_timeout (struct MHD_Daemon *daemon, unsigned long long *timeout)
int MHD_run (struct MHD_Daemon *daemon)
int MHD_get_connection_values (struct MHD_Connection *connection, enum MHD_ValueKind kind, MHD_KeyValueIterator iterator, void *iterator_cls)
int MHD_set_connection_value (struct MHD_Connection *connection, enum MHD_ValueKind kind, const char *key, const char *value)
const char * MHD_lookup_connection_value (struct MHD_Connection *connection, enum MHD_ValueKind kind, const char *key)
int MHD_queue_response (struct MHD_Connection *connection, unsigned int status_code, struct MHD_Response *response)
MHD_ResponseMHD_create_response_from_callback (size_t size, unsigned int block_size, MHD_ContentReaderCallback crc, void *crc_cls, MHD_ContentReaderFreeCallback crfc)
MHD_ResponseMHD_create_response_from_data (size_t size, void *data, int must_free, int must_copy)
void MHD_destroy_response (struct MHD_Response *response)
int MHD_add_response_header (struct MHD_Response *response, const char *header, const char *content)
int MHD_del_response_header (struct MHD_Response *response, const char *header, const char *content)
int MHD_get_response_headers (struct MHD_Response *response, MHD_KeyValueIterator iterator, void *iterator_cls)
const char * MHD_get_response_header (struct MHD_Response *response, const char *key)
MHD_PostProcessor * MHD_create_post_processor (struct MHD_Connection *connection, unsigned int buffer_size, MHD_PostDataIterator iter, void *cls)
int MHD_post_process (struct MHD_PostProcessor *pp, const char *post_data, unsigned int post_data_len)
int MHD_destroy_post_processor (struct MHD_PostProcessor *pp)
MHD_ConnectionInfoMHD_get_connection_info (struct MHD_Connection *connection, enum MHD_ConnectionInfoType infoType,...)
MHD_DaemonInfoMHD_get_daemon_info (struct MHD_Daemon *daemon, enum MHD_DaemonInfoType infoType,...)


Detailed Description

public interface to libmicrohttpd

Author:
Christian Grothoff

Chris GauthierDickey

All symbols defined in this header start with MHD. MHD is a small HTTP daemon library. As such, it does not have any API for logging errors (you can only enable or disable logging to stderr). Also, it may not support all of the HTTP features directly, where applicable, portions of HTTP may have to be handled by clients of the library.

The library is supposed to handle everything that it must handle (because the API would not allow clients to do this), such as basic connection management; however, detailed interpretations of headers -- such as range requests -- and HTTP methods are left to clients. The library does understand HEAD and will only send the headers of the response and not the body, even if the client supplied a body. The library also understands headers that control connection management (specifically, "Connection: close" and "Expect: 100 continue" are understood and handled automatically).

MHD understands POST data and is able to decode certain formats (at the moment only "application/x-www-form-urlencoded") if the entire data fits into the allowed amount of memory for the connection. Unsupported encodings and large POST submissions are provided as a stream to the main application (and thus can be processed, just not conveniently by MHD).

The header file defines various constants used by the HTTP protocol. This does not mean that MHD actually interprets all of these values. The provided constants are exported as a convenience for users of the library. MHD does not verify that transmitted HTTP headers are part of the standard specification; users of the library are free to define their own extensions of the HTTP standard and use those with MHD.

All functions are guaranteed to be completely reentrant and thread-safe (with the exception of 'MHD_set_connection_value', which must only be used in a particular context).

NEW: Before including "microhttpd.h" you should add the necessary includes to define the "size_t", "fd_set", "socklen_t" and "struct sockaddr" data types (which headers are needed may depend on your platform; for possible suggestions consult "platform.h" in the MHD distribution).

Definition in file microhttpd.h.


Define Documentation

#define MHD_HTTP_ACCEPTED   202

Definition at line 102 of file microhttpd.h.

#define MHD_HTTP_BAD_GATEWAY   502

Definition at line 145 of file microhttpd.h.

#define MHD_HTTP_BAD_REQUEST   400

Definition at line 118 of file microhttpd.h.

Referenced by MHD_connection_handle_idle(), parse_connection_headers(), and process_broken_line().

#define MHD_HTTP_BANDWIDTH_LIMIT_EXCEEDED   509

Definition at line 151 of file microhttpd.h.

#define MHD_HTTP_CONFLICT   409

Definition at line 127 of file microhttpd.h.

#define MHD_HTTP_CONTINUE   100

HTTP response codes.

Definition at line 96 of file microhttpd.h.

#define MHD_HTTP_CREATED   201

Definition at line 101 of file microhttpd.h.

#define MHD_HTTP_EXPECTATION_FAILED   417

Definition at line 135 of file microhttpd.h.

#define MHD_HTTP_FAILED_DEPENDENCY   424

Definition at line 138 of file microhttpd.h.

#define MHD_HTTP_FORBIDDEN   403

Definition at line 121 of file microhttpd.h.

#define MHD_HTTP_FOUND   302

Definition at line 111 of file microhttpd.h.

#define MHD_HTTP_GATEWAY_TIMEOUT   504

Definition at line 147 of file microhttpd.h.

#define MHD_HTTP_GONE   410

Definition at line 128 of file microhttpd.h.

#define MHD_HTTP_HEADER_ACCEPT   "Accept"

Definition at line 155 of file microhttpd.h.

#define MHD_HTTP_HEADER_ACCEPT_CHARSET   "Accept-Charset"

Definition at line 156 of file microhttpd.h.

#define MHD_HTTP_HEADER_ACCEPT_ENCODING   "Accept-Encoding"

Definition at line 157 of file microhttpd.h.

#define MHD_HTTP_HEADER_ACCEPT_LANGUAGE   "Accept-Language"

Definition at line 158 of file microhttpd.h.

#define MHD_HTTP_HEADER_ACCEPT_RANGES   "Accept-Ranges"

Definition at line 159 of file microhttpd.h.

#define MHD_HTTP_HEADER_AGE   "Age"

Definition at line 160 of file microhttpd.h.

#define MHD_HTTP_HEADER_ALLOW   "Allow"

Definition at line 161 of file microhttpd.h.

#define MHD_HTTP_HEADER_AUTHORIZATION   "Authorization"

Definition at line 162 of file microhttpd.h.

#define MHD_HTTP_HEADER_CACHE_CONTROL   "Cache-Control"

Definition at line 163 of file microhttpd.h.

#define MHD_HTTP_HEADER_CONNECTION   "Connection"

Definition at line 164 of file microhttpd.h.

Referenced by add_extra_headers(), and MHD_connection_handle_idle().

#define MHD_HTTP_HEADER_CONTENT_ENCODING   "Content-Encoding"

Definition at line 165 of file microhttpd.h.

#define MHD_HTTP_HEADER_CONTENT_LANGUAGE   "Content-Language"

Definition at line 166 of file microhttpd.h.

#define MHD_HTTP_HEADER_CONTENT_LENGTH   "Content-Length"

Definition at line 167 of file microhttpd.h.

Referenced by add_extra_headers(), and parse_connection_headers().

#define MHD_HTTP_HEADER_CONTENT_LOCATION   "Content-Location"

Definition at line 168 of file microhttpd.h.

#define MHD_HTTP_HEADER_CONTENT_MD5   "Content-MD5"

Definition at line 169 of file microhttpd.h.

#define MHD_HTTP_HEADER_CONTENT_RANGE   "Content-Range"

Definition at line 170 of file microhttpd.h.

#define MHD_HTTP_HEADER_CONTENT_TYPE   "Content-Type"

Definition at line 171 of file microhttpd.h.

Referenced by MHD_create_post_processor(), and test_simple_large().

#define MHD_HTTP_HEADER_DATE   "Date"

Definition at line 172 of file microhttpd.h.

Referenced by build_header_response().

#define MHD_HTTP_HEADER_ETAG   "ETag"

Definition at line 173 of file microhttpd.h.

#define MHD_HTTP_HEADER_EXPECT   "Expect"

Definition at line 174 of file microhttpd.h.

Referenced by need_100_continue().

#define MHD_HTTP_HEADER_EXPIRES   "Expires"

Definition at line 175 of file microhttpd.h.

#define MHD_HTTP_HEADER_FROM   "From"

Definition at line 176 of file microhttpd.h.

#define MHD_HTTP_HEADER_HOST   "Host"

Definition at line 177 of file microhttpd.h.

Referenced by parse_connection_headers().

#define MHD_HTTP_HEADER_IF_MATCH   "If-Match"

Definition at line 178 of file microhttpd.h.

#define MHD_HTTP_HEADER_IF_MODIFIED_SINCE   "If-Modified-Since"

Definition at line 179 of file microhttpd.h.

#define MHD_HTTP_HEADER_IF_NONE_MATCH   "If-None-Match"

Definition at line 180 of file microhttpd.h.

#define MHD_HTTP_HEADER_IF_RANGE   "If-Range"

Definition at line 181 of file microhttpd.h.

#define MHD_HTTP_HEADER_IF_UNMODIFIED_SINCE   "If-Unmodified-Since"

Definition at line 182 of file microhttpd.h.

#define MHD_HTTP_HEADER_LAST_MODIFIED   "Last-Modified"

Definition at line 183 of file microhttpd.h.

#define MHD_HTTP_HEADER_LOCATION   "Location"

Definition at line 184 of file microhttpd.h.

#define MHD_HTTP_HEADER_MAX_FORWARDS   "Max-Forwards"

Definition at line 185 of file microhttpd.h.

#define MHD_HTTP_HEADER_PRAGMA   "Pragma"

Definition at line 186 of file microhttpd.h.

#define MHD_HTTP_HEADER_PROXY_AUTHENTICATE   "Proxy-Authenticate"

Definition at line 187 of file microhttpd.h.

#define MHD_HTTP_HEADER_PROXY_AUTHORIZATION   "Proxy-Authorization"

Definition at line 188 of file microhttpd.h.

#define MHD_HTTP_HEADER_RANGE   "Range"

Definition at line 189 of file microhttpd.h.

#define MHD_HTTP_HEADER_REFERER   "Referer"

Definition at line 190 of file microhttpd.h.

#define MHD_HTTP_HEADER_RETRY_AFTER   "Retry-After"

Definition at line 191 of file microhttpd.h.

#define MHD_HTTP_HEADER_SERVER   "Server"

Definition at line 192 of file microhttpd.h.

#define MHD_HTTP_HEADER_TE   "TE"

Definition at line 193 of file microhttpd.h.

#define MHD_HTTP_HEADER_TRAILER   "Trailer"

Definition at line 194 of file microhttpd.h.

#define MHD_HTTP_HEADER_TRANSFER_ENCODING   "Transfer-Encoding"

Definition at line 195 of file microhttpd.h.

Referenced by add_extra_headers(), and parse_connection_headers().

#define MHD_HTTP_HEADER_UPGRADE   "Upgrade"

Definition at line 196 of file microhttpd.h.

#define MHD_HTTP_HEADER_USER_AGENT   "User-Agent"

Definition at line 197 of file microhttpd.h.

#define MHD_HTTP_HEADER_VARY   "Vary"

Definition at line 198 of file microhttpd.h.

#define MHD_HTTP_HEADER_VIA   "Via"

Definition at line 199 of file microhttpd.h.

#define MHD_HTTP_HEADER_WARNING   "Warning"

Definition at line 200 of file microhttpd.h.

#define MHD_HTTP_HEADER_WWW_AUTHENTICATE   "WWW-Authenticate"

Definition at line 201 of file microhttpd.h.

#define MHD_HTTP_HTTP_VERSION_NOT_SUPPORTED   505

Definition at line 148 of file microhttpd.h.

#define MHD_HTTP_INSUFFICIENT_STORAGE   507

Definition at line 150 of file microhttpd.h.

#define MHD_HTTP_INTERNAL_SERVER_ERROR   500

Definition at line 143 of file microhttpd.h.

Referenced by MHD_connection_get_fdset().

#define MHD_HTTP_LENGTH_REQUIRED   411

Definition at line 129 of file microhttpd.h.

#define MHD_HTTP_LOCKED   423

Definition at line 137 of file microhttpd.h.

#define MHD_HTTP_METHOD_CONNECT   "CONNECT"

HTTP methods

Definition at line 213 of file microhttpd.h.

#define MHD_HTTP_METHOD_DELETE   "DELETE"

Definition at line 214 of file microhttpd.h.

#define MHD_HTTP_METHOD_GET   "GET"

Definition at line 215 of file microhttpd.h.

#define MHD_HTTP_METHOD_HEAD   "HEAD"

Definition at line 216 of file microhttpd.h.

Referenced by MHD_queue_response().

#define MHD_HTTP_METHOD_NOT_ACCEPTABLE   406

Definition at line 124 of file microhttpd.h.

#define MHD_HTTP_METHOD_NOT_ALLOWED   405

Definition at line 123 of file microhttpd.h.

#define MHD_HTTP_METHOD_OPTIONS   "OPTIONS"

Definition at line 217 of file microhttpd.h.

#define MHD_HTTP_METHOD_POST   "POST"

Definition at line 218 of file microhttpd.h.

#define MHD_HTTP_METHOD_PUT   "PUT"

Definition at line 219 of file microhttpd.h.

#define MHD_HTTP_METHOD_TRACE   "TRACE"

Definition at line 220 of file microhttpd.h.

#define MHD_HTTP_MOVED_PERMANENTLY   301

Definition at line 110 of file microhttpd.h.

#define MHD_HTTP_MULTI_STATUS   207

Definition at line 107 of file microhttpd.h.

#define MHD_HTTP_MULTIPLE_CHOICES   300

Definition at line 109 of file microhttpd.h.

#define MHD_HTTP_NO_CONTENT   204

Definition at line 104 of file microhttpd.h.

#define MHD_HTTP_NON_AUTHORITATIVE_INFORMATION   203

Definition at line 103 of file microhttpd.h.

#define MHD_HTTP_NOT_EXTENDED   510

Definition at line 152 of file microhttpd.h.

#define MHD_HTTP_NOT_FOUND   404

Definition at line 122 of file microhttpd.h.

#define MHD_HTTP_NOT_IMPLEMENTED   501

Definition at line 144 of file microhttpd.h.

#define MHD_HTTP_NOT_MODIFIED   304

Definition at line 113 of file microhttpd.h.

#define MHD_HTTP_OK   200

Definition at line 100 of file microhttpd.h.

#define MHD_HTTP_PARTIAL_CONTENT   206

Definition at line 106 of file microhttpd.h.

#define MHD_HTTP_PAYMENT_REQUIRED   402

Definition at line 120 of file microhttpd.h.

#define MHD_HTTP_POST_ENCODING_FORM_URLENCODED   "application/x-www-form-urlencoded"

HTTP POST encodings, see also http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4

Definition at line 226 of file microhttpd.h.

Referenced by MHD_create_post_processor(), MHD_post_process(), and test_simple_large().

#define MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA   "multipart/form-data"

Definition at line 227 of file microhttpd.h.

Referenced by MHD_create_post_processor(), and MHD_post_process().

#define MHD_HTTP_PRECONDITION_FAILED   412

Definition at line 130 of file microhttpd.h.

#define MHD_HTTP_PROCESSING   102

Definition at line 98 of file microhttpd.h.

#define MHD_HTTP_PROXY_AUTHENTICATION_REQUIRED   407

Definition at line 125 of file microhttpd.h.

#define MHD_HTTP_REQUEST_ENTITY_TOO_LARGE   413

Definition at line 131 of file microhttpd.h.

Referenced by connection_add_header(), get_next_header_line(), MHD_connection_get_fdset(), parse_cookie_header(), and process_broken_line().

#define MHD_HTTP_REQUEST_TIMEOUT   408

Definition at line 126 of file microhttpd.h.

#define MHD_HTTP_REQUEST_URI_TOO_LONG   414

Definition at line 132 of file microhttpd.h.

Referenced by get_next_header_line(), and MHD_connection_get_fdset().

#define MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE   416

Definition at line 134 of file microhttpd.h.

<