friendev EtherDune TCP/IP library
|
#include <ACross.h>
Go to the source code of this file.
Variables | |
static const char | CONTENT_TYPE_TEXT_HTML [] = "text/html" |
static const char | CONTENT_TYPE_APPLICATION_JSON [] = "application/json" |
static const uint8_t | HTTP_METHOD_OPTIONS = 44 |
static const uint8_t | HTTP_METHOD_GET = 230 |
static const uint8_t | HTTP_METHOD_HEAD = 26 |
static const uint8_t | HTTP_METHOD_POST = 78 |
static const uint8_t | HTTP_METHOD_PUT = 255 |
static const uint8_t | HTTP_METHOD_DELETE = 191 |
static const uint8_t | HTTP_METHOD_TRACE = 121 |
static const uint8_t | HTTP_METHOD_CONNECT = 24 |
static const uint8_t | HTTP_METHOD_PROPFIND = 114 |
static const uint8_t | HTTP_METHOD_PROPPATCH = 195 |
static const uint8_t | HTTP_METHOD_MKCOL = 128 |
static const uint8_t | HTTP_METHOD_COPY = 67 |
static const uint8_t | HTTP_METHOD_MOVE = 63 |
static const uint8_t | HTTP_METHOD_LOCK = 49 |
static const uint8_t | HTTP_METHOD_UNLOCK = 216 |
static const uint8_t | HTTP_METHOD_VERSION_CONTROL = 146 |
static const uint8_t | HTTP_METHOD_REPORT = 232 |
static const uint8_t | HTTP_METHOD_CHECKOUT = 102 |
static const uint8_t | HTTP_METHOD_CHECKIN = 3 |
static const uint8_t | HTTP_METHOD_UNCHECKOUT = 13 |
static const uint8_t | HTTP_METHOD_MKWORKSPACE = 93 |
static const uint8_t | HTTP_METHOD_UPDATE = 207 |
static const uint8_t | HTTP_METHOD_LABEL = 106 |
static const uint8_t | HTTP_METHOD_MERGE = 122 |
static const uint8_t | HTTP_METHOD_BASELINE_CONTROL = 177 |
static const uint8_t | HTTP_METHOD_MKACTIVITY = 25 |
static const uint8_t | HTTP_METHOD_ORDERPATCH = 0 |
static const uint8_t | HTTP_METHOD_ACL = 214 |
static const uint8_t | HTTP_METHOD_SEARCH = 194 |
static const uint16_t | HTTP_RESPONSE_CONTINUE = 100 |
This interim response indicates that everything so far is OK and that the client should continue with the request or ignore it if it is already finished. More... | |
static const uint16_t | HTTP_RESPONSE_SWITCHING_PROTOCOL = 101 |
This code is sent in response to an Upgrade: request header by the client, and indicates that the protocol the server is switching too. More... | |
static const uint16_t | HTTP_RESPONSE_OK = 200 |
The request has succeeded. More... | |
static const uint16_t | HTTP_RESPONSE_CREATED = 201 |
The request has succeeded and a new resource has been created as a result of it. More... | |
static const uint16_t | HTTP_RESPONSE_ACCEPTED = 202 |
The request has been received but not yet acted upon. More... | |
static const uint16_t | HTTP_RESPONSE_NON_AUTHORITATIVE_INFORMATION = 203 |
This response code means returned meta-information set is not exact set as available from the origin server, but collected from a local or a third party copy. More... | |
static const uint16_t | HTTP_RESPONSE_NO_CONTENT = 204 |
There is no content to send for this request, but the headers may be useful. More... | |
static const uint16_t | HTTP_RESPONSE_RESET_CONTENT = 205 |
This response code is sent after accomplishing request to tell user agent reset document view which sent this request. More... | |
static const uint16_t | HTTP_RESPONSE_PARTIAL_CONTENT = 206 |
This response code is used because of range header sent by the client to separate download into multiple streams. More... | |
static const uint16_t | HTTP_RESPONSE_MULTIPLE_CHOICE = 300 |
The request has more than one possible responses. More... | |
static const uint16_t | HTTP_RESPONSE_MOVED_PERMANENTLY = 301 |
This response code means that URI of requested resource has been changed. More... | |
static const uint16_t | HTTP_RESPONSE_FOUND = 302 |
This response code means that URI of requested resource has been changed temporarily. More... | |
static const uint16_t | HTTP_RESPONSE_SEE_OTHER = 303 |
Server sent this response to directing client to get requested resource to another URI with an GET request. More... | |
static const uint16_t | HTTP_RESPONSE_NOT_MODIFIED = 304 |
This is used for caching purposes. More... | |
static const uint16_t | HTTP_RESPONSE_USE_PROXY = 305 |
This means requested response must be accessed by a proxy. More... | |
static const uint16_t | HTTP_RESPONSE_UNUSED = 306 |
This response code is no longer used, it is just reserved currently. More... | |
static const uint16_t | HTTP_RESPONSE_TEMPORARY_REDIRECT = 307 |
Server sent this response to directing client to get requested resource to another URI with same method that used prior request. More... | |
static const uint16_t | HTTP_RESPONSE_PERMANENT_REDIRECT = 308 |
This means that the resource is now permanently located at another URI, specified by the Location: HTTP Response header. More... | |
static const uint16_t | HTTP_RESPONSE_BAD_REQUEST = 400 |
This response means that server could not understand the request due to invalid syntax. More... | |
static const uint16_t | HTTP_RESPONSE_UNAUTHORIZED = 401 |
Authentication is needed to get requested response. More... | |
static const uint16_t | HTTP_RESPONSE_PAYMENT_REQUIRED = 402 |
This response code is reserved for future use. More... | |
static const uint16_t | HTTP_RESPONSE_FORBIDDEN = 403 |
Client does not have access rights to the content so server is rejecting to give proper response. More... | |
static const uint16_t | HTTP_RESPONSE_NOT_FOUND = 404 |
Server can not find requested resource. More... | |
static const uint16_t | HTTP_RESPONSE_METHOD_NOT_ALLOWED = 405 |
The request method is known by the server but has been disabled and cannot be used. More... | |
static const uint16_t | HTTP_RESPONSE_NOT_ACCEPTABLE = 406 |
This response is sent when the web server, after performing server-driven content negotiation, doesn't find any content following the criteria given by the user agent. More... | |
static const uint16_t | HTTP_RESPONSE_PROXY_AUTHENTICATION_REQUIRED = 407 |
This is similar to 401 but authentication is needed to be done by a proxy. More... | |
static const uint16_t | HTTP_RESPONSE_REQUEST_TIMEOUT = 408 |
This response is sent on an idle connection by some servers, even without any previous request by the client. More... | |
static const uint16_t | HTTP_RESPONSE_CONFLICT = 409 |
This response would be sent when a request conflict with current state of server. More... | |
static const uint16_t | HTTP_RESPONSE_GONE = 410 |
This response would be sent when requested content has been deleted from server. More... | |
static const uint16_t | HTTP_RESPONSE_LENGTH_REQUIRED = 411 |
Server rejected the request because the Content-Length header field is not defined and the server requires it. More... | |
static const uint16_t | HTTP_RESPONSE_PRECONDITION_FAILED = 412 |
The client has indicated preconditions in its headers which the server does not meet. More... | |
static const uint16_t | HTTP_RESPONSE_REQUEST_ENTITY_TOO_LARGE = 413 |
Request entity is larger than limits defined by server; the server might close the connection or return an Retry-After header field. More... | |
static const uint16_t | HTTP_RESPONSE_REQUEST_URI_TOO_LONG = 414 |
The URI requested by the client is too long for the server to handle. More... | |
static const uint16_t | HTTP_RESPONSE_UNSUPPORTED_MEDIA_TYPE = 415 |
The media format of the requested data is not supported by the server, so the server is rejecting the request. More... | |
static const uint16_t | HTTP_RESPONSE_REQUESTED_RANGE_NOT_SATISFIABLE = 416 |
The range specified by the Range header field in the request can't be fulfilled; it's possible that the range is outside the size of the target URI's data. More... | |
static const uint16_t | HTTP_RESPONSE_EXPECTATION_FAILED = 417 |
This response code means the expectation indicated by the Expect request header field can't be met by the server. More... | |
static const uint16_t | HTTP_RESPONSE_INTERNAL_SERVER_ERROR = 500 |
The server has encountered a situation it doesn't know how to handle. More... | |
static const uint16_t | HTTP_RESPONSE_NOT_IMPLEMENTED = 501 |
The request method is not supported by the server and cannot be handled. More... | |
static const uint16_t | HTTP_RESPONSE_BAD_GATEWAY = 502 |
This error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response. More... | |
static const uint16_t | HTTP_RESPONSE_SERVICE_UNAVAILABLE = 503 |
The server is not ready to handle the request. More... | |
static const uint16_t | HTTP_RESPONSE_GATEWAY_TIMEOUT = 504 |
This error response is given when the server is acting as a gateway and cannot get a response in time. More... | |
static const uint16_t | HTTP_RESPONSE_HTTP_VERSION_NOT_SUPPORTED = 505 |
The HTTP version used in the request is not supported by the server. More... | |
static const char | HTTP_RESPONSE_CONTINUE_STR [] = "Continue" |
static const char | HTTP_RESPONSE_SWITCHING_PROTOCOL_STR [] = "Switching Protocol" |
static const char | HTTP_RESPONSE_OK_STR [] = "OK" |
static const char | HTTP_RESPONSE_CREATED_STR [] = "Created" |
static const char | HTTP_RESPONSE_ACCEPTED_STR [] = "Accepted" |
static const char | HTTP_RESPONSE_NON_AUTHORITATIVE_INFORMATION_STR [] = "Non-Authoritative Information" |
static const char | HTTP_RESPONSE_NO_CONTENT_STR [] = "No Content" |
static const char | HTTP_RESPONSE_RESET_CONTENT_STR [] = "Reset Content" |
static const char | HTTP_RESPONSE_PARTIAL_CONTENT_STR [] = "Partial Content" |
static const char | HTTP_RESPONSE_MULTIPLE_CHOICE_STR [] = "Multiple Choice" |
static const char | HTTP_RESPONSE_MOVED_PERMANENTLY_STR [] = "Moved Permanently" |
static const char | HTTP_RESPONSE_FOUND_STR [] = "Found" |
static const char | HTTP_RESPONSE_SEE_OTHER_STR [] = "See Other" |
static const char | HTTP_RESPONSE_NOT_MODIFIED_STR [] = "Not Modified" |
static const char | HTTP_RESPONSE_USE_PROXY_STR [] = "Use Proxy" |
static const char | HTTP_RESPONSE_UNUSED_STR [] = "unused" |
static const char | HTTP_RESPONSE_TEMPORARY_REDIRECT_STR [] = "Temporary Redirect" |
static const char | HTTP_RESPONSE_PERMANENT_REDIRECT_STR [] = "Permanent Redirect" |
static const char | HTTP_RESPONSE_BAD_REQUEST_STR [] = "Bad Request" |
static const char | HTTP_RESPONSE_UNAUTHORIZED_STR [] = "Unauthorized" |
static const char | HTTP_RESPONSE_PAYMENT_REQUIRED_STR [] = "Payment Required" |
static const char | HTTP_RESPONSE_FORBIDDEN_STR [] = "Forbidden" |
static const char | HTTP_RESPONSE_NOT_FOUND_STR [] = "Not Found" |
static const char | HTTP_RESPONSE_METHOD_NOT_ALLOWED_STR [] = "Method Not Allowed" |
static const char | HTTP_RESPONSE_NOT_ACCEPTABLE_STR [] = "Not Acceptable" |
static const char | HTTP_RESPONSE_PROXY_AUTHENTICATION_REQUIRED_STR [] = "Proxy Authentication Required" |
static const char | HTTP_RESPONSE_REQUEST_TIMEOUT_STR [] = "Request Timeout" |
static const char | HTTP_RESPONSE_CONFLICT_STR [] = "Conflict" |
static const char | HTTP_RESPONSE_GONE_STR [] = "Gone" |
static const char | HTTP_RESPONSE_LENGTH_REQUIRED_STR [] = "Length Required" |
static const char | HTTP_RESPONSE_PRECONDITION_FAILED_STR [] = "Precondition Failed" |
static const char | HTTP_RESPONSE_REQUEST_ENTITY_TOO_LARGE_STR [] = "Request Entity Too Large" |
static const char | HTTP_RESPONSE_REQUEST_URI_TOO_LONG_STR [] = "Request-URI Too Long" |
static const char | HTTP_RESPONSE_UNSUPPORTED_MEDIA_TYPE_STR [] = "Unsupported Media Type" |
static const char | HTTP_RESPONSE_REQUESTED_RANGE_NOT_SATISFIABLE_STR [] = "Requested Range Not Satisfiable" |
static const char | HTTP_RESPONSE_EXPECTATION_FAILED_STR [] = "Expectation Failed" |
static const char | HTTP_RESPONSE_INTERNAL_SERVER_ERROR_STR [] = "Internal Server Error" |
static const char | HTTP_RESPONSE_NOT_IMPLEMENTED_STR [] = "Not Implemented" |
static const char | HTTP_RESPONSE_BAD_GATEWAY_STR [] = "Bad Gateway" |
static const char | HTTP_RESPONSE_SERVICE_UNAVAILABLE_STR [] = "Service Unavailable" |
static const char | HTTP_RESPONSE_GATEWAY_TIMEOUT_STR [] = "Gateway Timeout" |
static const char | HTTP_RESPONSE_HTTP_VERSION_NOT_SUPPORTED_STR [] = "HTTP Version Not Supported" |
static const char | HTTP_HEADER_ACCEPT [] = "Accept" |
Content-Types that are acceptable for the response. More... | |
static const char | HTTP_HEADER_ACCEPT_CHARSET [] = "Accept-Charset" |
Character sets that are acceptable . More... | |
static const char | HTTP_HEADER_ACCEPT_ENCODING [] = "Accept-Encoding" |
List of acceptable encodings. More... | |
static const char | HTTP_HEADER_ACCEPT_LANGUAGE [] = "Accept-Language" |
List of acceptable human languages for response. More... | |
static const char | HTTP_HEADER_ACCEPT_DATETIME [] = "Accept-Datetime" |
Acceptable version in time . More... | |
static const char | HTTP_HEADER_AUTHORIZATION [] = "Authorization" |
Authentication credentials for HTTP authentication . More... | |
static const char | HTTP_HEADER_CACHE_CONTROL [] = "Cache-Control" |
Used to specify directives that must be obeyed by all caching mechanisms along the request-response chain . More... | |
static const char | HTTP_HEADER_CONNECTION [] = "Connection" |
Control options for the current connection and List of hop-by-hop request fields[8] . More... | |
static const char | HTTP_HEADER_COOKIE [] = "Cookie" |
An HTTP cookie previously sent by the server with Set-Cookie (below) . More... | |
static const char | HTTP_HEADER_CONTENT_LENGTH [] = "Content-Length" |
The length of the request body in octets (8-bit bytes) . More... | |
static const char | HTTP_HEADER_CONTENT_MD5 [] = "Content-MD5" |
A Base64-encoded binary MD5 sum of the content of the request body . More... | |
static const char | HTTP_HEADER_CONTENT_TYPE [] = "Content-Type" |
The MIME type of the body of the request (used with POST and PUT requests) . More... | |
static const char | HTTP_HEADER_DATE [] = "Date" |
The date and time that the message was sent (in "HTTP-date" format as defined by RFC 7231 Date/Time Formats) . More... | |
static const char | HTTP_HEADER_EXPECT [] = "Expect" |
Indicates that particular server behaviors are required by the client . More... | |
static const char | HTTP_HEADER_FROM [] = "From" |
The email address of the user making the request . More... | |
static const char | HTTP_HEADER_HOST [] = "Host" |
The domain name of the server (for virtual hosting), and the TCP port number on which the server is Listening. More... | |
static const char | HTTP_HEADER_IF_MATCH [] = "If-Match" |
Only perform the action if the client supplied entity matches the same entity on the server. More... | |
static const char | HTTP_HEADER_IF_MODIFIED_SINCE [] = "If-Modified-Since" |
Allows a 304 Not Modified to be returned if content is unchanged . More... | |
static const char | HTTP_HEADER_IF_NONE_MATCH [] = "If-None-Match" |
Allows a 304 Not Modified to be returned if content is unchanged, see HTTP ETag . More... | |
static const char | HTTP_HEADER_IF_RANGE [] = "If-Range" |
If the entity is unchanged, send me the part(s) that I am missing; otherwise, send me the entire new entity . More... | |
static const char | HTTP_HEADER_IF_UNMODIFIED_SINCE [] = "If-Unmodified-Since" |
Only send the response if the entity has not been modified since a specific time. More... | |
static const char | HTTP_HEADER_MAX_FORWARDS [] = "Max-Forwards" |
Limit the number of times the message can be forwarded through proxies or gateways. More... | |
static const char | HTTP_HEADER_ORIGIN [] = "Origin" |
Initiates a request for cross-origin resource sharing (asks server for an 'Access-Control-Allow-Origin' response field) . More... | |
static const char | HTTP_HEADER_PRAGMA [] = "Pragma" |
Implementation-specific fields that may have various effects anywhere along the request-response chain. More... | |
static const char | HTTP_HEADER_PROXY_AUTHORIZATION [] = "Proxy-Authorization" |
Authorization credentials for connecting to a proxy. More... | |
static const char | HTTP_HEADER_RANGE [] = "Range" |
Request only part of an entity. More... | |
static const char | HTTP_HEADER_REFERER [] = "Referer" |
This is the address of the previous web page from which a link to the currently requested page was followed. More... | |
static const char | HTTP_HEADER_TE [] = "TE" |
The transfer encodings the user agent is willing to accept: the same values as for the response header field Transfer-Encoding can be used, plus the "trailers" value (related to the "chunked" transfer method) to notify the server it expects to receive additional fields in the trailer after the last, zero-sized, packet. More... | |
static const char | HTTP_HEADER_USER_AGENT [] = "User-Agent" |
The user agent string of the user agent . More... | |
static const char | HTTP_HEADER_UPGRADE [] = "Upgrade" |
Ask the server to upgrade to another protocol. More... | |
static const char | HTTP_HEADER_VIA [] = "Via" |
Informs the server of proxies through which the request was sent. More... | |
static const char | HTTP_HEADER_WARNING [] = "Warning" |
A general warning about possible problems with the entity body. More... | |
static const char | HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN [] = "Access-Control-Allow-Origin" |
Specifying which web sites can participate in cross-origin resource sharing . More... | |
static const char | HTTP_HEADER_ACCEPT_PATCH [] = "Accept-Patch" |
Specifies which patch document formats this server supports . More... | |
static const char | HTTP_HEADER_ACCEPT_RANGES [] = "Accept-Ranges" |
What partial content range types this server supports . More... | |
static const char | HTTP_HEADER_AGE [] = "Age" |
The age the object has been in a proxy cache in seconds . More... | |
static const char | HTTP_HEADER_ALLOW [] = "Allow" |
Valid actions for a specified resource. More... | |
static const char | HTTP_HEADER_CONTENT_ENCODING [] = "Content-Encoding" |
The type of encoding used on the data. More... | |
static const char | HTTP_HEADER_CONTENT_LANGUAGE [] = "Content-Language" |
The language the content is in . More... | |
static const char | HTTP_HEADER_CONTENT_LOCATION [] = "Content-Location" |
An alternate location for the returned data . More... | |
static const char | HTTP_HEADER_CONTENT_DISPOSITION [] = "Content-Disposition" |
An opportunity to raise a "File Download" dialogue box for a known MIME type with binary format or suggest a filename for dynamic content. More... | |
static const char | HTTP_HEADER_CONTENT_RANGE [] = "Content-Range" |
Where in a full body message this partial message belongs . More... | |
static const char | HTTP_HEADER_ETAG [] = "ETag" |
An identifier for a specific version of a resource, often a message digest . More... | |
static const char | HTTP_HEADER_EXPIRES [] = "Expires" |
Gives the date/time after which the response is considered stale (in "HTTP-date" format as defined by RFC 7231) . More... | |
static const char | HTTP_HEADER_LAST_MODIFIED [] = "Last-Modified" |
The last modified date for the requested object (in "HTTP-date" format as defined by RFC 7231) . More... | |
static const char | HTTP_HEADER_LINK [] = "Link" |
Used to express a typed relationship with another resource, where the relation type is defined by RFC 5988 . More... | |
static const char | HTTP_HEADER_LOCATION [] = "Location" |
Used in redirection, or when a new resource has been created. More... | |
static const char | HTTP_HEADER_P3P [] = "P3P" |
This field is supposed to set P3P policy, in the form of P3P:CP="your_compact_policy". More... | |
static const char | HTTP_HEADER_PROXY_AUTHENTICATE [] = "Proxy-Authenticate" |
Request authentication to access the proxy. More... | |
static const char | HTTP_HEADER_REFRESH [] = "Refresh" |
Used in redirection, or when a new resource has been created. More... | |
static const char | HTTP_HEADER_RETRY_AFTER [] = "Retry-After" |
If an entity is temporarily unavailable, this instructs the client to try again later. More... | |
static const char | HTTP_HEADER_SERVER [] = "Server" |
A name for the server . More... | |
static const char | HTTP_HEADER_SET_COOKIE [] = "Set-Cookie" |
An HTTP cookie . More... | |
static const char | HTTP_HEADER_STATUS [] = "Status" |
CGI header field specifying the status of the HTTP response. More... | |
static const char | HTTP_HEADER_STRICT_TRANSPORT_SECURITY [] = "Strict-Transport-Security" |
A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains. More... | |
static const char | HTTP_HEADER_TRAILER [] = "Trailer" |
The Trailer general field value indicates that the given set of header fields is present in the trailer of a message encoded with chunked transfer coding. More... | |
static const char | HTTP_HEADER_TRANSFER_ENCODING [] = "Transfer-Encoding" |
The form of encoding used to safely transfer the entity to the user. More... | |
static const char | HTTP_HEADER_VARY [] = "Vary" |
Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server. More... | |
static const char | HTTP_HEADER_WWW_AUTHENTICATE [] = "WWW-Authenticate" |
Indicates the authentication scheme that should be used to access the requested entity. More... | |