Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
HttpHeaders.h
00001 /***************************************************************************** 00002 * 00003 * HttpHeaders.h 00004 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ 00005 * 00006 * Redistribution and use in source and binary forms, with or without 00007 * modification, are permitted provided that the following conditions 00008 * are met: 00009 * 00010 * Redistributions of source code must retain the above copyright 00011 * notice, this list of conditions and the following disclaimer. 00012 * 00013 * Redistributions in binary form must reproduce the above copyright 00014 * notice, this list of conditions and the following disclaimer in the 00015 * documentation and/or other materials provided with the 00016 * distribution. 00017 * 00018 * Neither the name of Texas Instruments Incorporated nor the names of 00019 * its contributors may be used to endorse or promote products derived 00020 * from this software without specific prior written permission. 00021 * 00022 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00023 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00024 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 00025 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 00026 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00027 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00028 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00029 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00030 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00031 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00032 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00033 * 00034 *****************************************************************************/ 00035 #ifndef _HTTP_HEADERS_H_ 00036 #define _HTTP_HEADERS_H_ 00037 00038 /** 00039 * @defgroup HttpHeaders HTTP header strings 00040 * This header file predefines various HTTP request and response header strings 00041 * 00042 * @{ 00043 */ 00044 00045 #include "Common.h" 00046 00047 char HTTP_HEADER_DELIMITER[] = "\r\n"; 00048 00049 // HTTP method line strings 00050 char HTTP_METHOD_GET[] = "get"; 00051 char HTTP_METHOD_POST[] = "post"; 00052 char HTTP_VERSION_1P1[] = "http/1.1"; 00053 char HTTP_VERSION_1P0[] = "http/1.0"; 00054 00055 // HTTP request/response header line strings 00056 char HTTP_CONTENT_TYPE[] = "content-type"; 00057 char HTTP_CONTENT_LENGTH[] = "content-length"; 00058 char HTTP_ACCEPT_ENCODING[] = "accept-encoding"; 00059 char HTTP_AUTHORIZATION[] = "authorization"; 00060 char HTTP_CONNECTION_CLOSE[] = "connection"; 00061 char HTTP_GZIP[] = "gzip"; 00062 char HTTP_CLOSE[] = "close"; 00063 char HTTP_LOCATION[] = "location"; 00064 char HTTP_CONTENT_ENCODING[] = "content-encoding"; 00065 00066 // HTTP response status line strings 00067 char HTTP_STATUS_OK_STR[] = "ok"; 00068 char HTTP_STATUS_REDIRECT_PERMANENT_STR[] = "moved permanently"; 00069 char HTTP_STATUS_REDIRECT_TEMPORARY_STR[] = "moved temporarily"; 00070 char HTTP_STATUS_ERROR_UNAUTHORIZED_STR[] = "unauthorized"; 00071 char HTTP_STATUS_ERROR_NOT_FOUND_STR[] = "not found"; 00072 char HTTP_STATUS_ERROR_NOT_ACCEPTED_STR[] = "not accepted"; 00073 char HTTP_STATUS_ERROR_INTERNAL_STR[] = "internal server error"; 00074 00075 #endif //_HTTP_HEADERS_H_
Generated on Wed Jul 13 2022 13:30:51 by
1.7.2