TI-RTOS Network Services  2.14.04.31
httpstd.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014-2015, Texas Instruments Incorporated
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the distribution.
15  *
16  * * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 #ifndef ti_net_http_HTTPStd__include
33 #define ti_net_http_HTTPStd__include
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
50 #define HTTPStd_PORT 80
51 #define HTTPStd_SECURE_PORT 443
52 
62  HTTPStd_OK = 200,
73  HTTPStd_FOUND = 302,
89  HTTPStd_GONE = 410,
108 };
113 extern const char *HTTPStd_GET;
114 extern const char *HTTPStd_POST;
115 extern const char *HTTPStd_HEAD;
116 extern const char *HTTPStd_OPTIONS;
117 extern const char *HTTPStd_PUT;
118 extern const char *HTTPStd_DELETE;
119 extern const char *HTTPStd_CONNECT;
120 
121 extern const char *HTTPStd_CONTENT_TYPE_APPLET;
122 extern const char *HTTPStd_CONTENT_TYPE_AU;
123 extern const char *HTTPStd_CONTENT_TYPE_CSS;
124 extern const char *HTTPStd_CONTENT_TYPE_DOC;
125 extern const char *HTTPStd_CONTENT_TYPE_GIF;
126 extern const char *HTTPStd_CONTENT_TYPE_HTML;
127 extern const char *HTTPStd_CONTENT_TYPE_JPG;
128 extern const char *HTTPStd_CONTENT_TYPE_MPEG;
129 extern const char *HTTPStd_CONTENT_TYPE_PDF;
130 extern const char *HTTPStd_CONTENT_TYPE_WAV;
131 extern const char *HTTPStd_CONTENT_TYPE_ZIP;
132 extern const char *HTTPStd_CONTENT_TYPE_PLAIN;
133 
134 extern const char *HTTPStd_VER;
135 
136 extern const char *HTTPStd_FIELD_NAME_ACCEPT;
137 extern const char *HTTPStd_FIELD_NAME_ACCEPT_CHARSET;
138 extern const char *HTTPStd_FIELD_NAME_ACCEPT_ENCODING;
139 extern const char *HTTPStd_FIELD_NAME_ACCEPT_LANGUAGE;
140 extern const char *HTTPStd_FIELD_NAME_ACCEPT_RANGES;
141 extern const char *HTTPStd_FIELD_NAME_AGE;
142 extern const char *HTTPStd_FIELD_NAME_ALLOW;
143 extern const char *HTTPStd_FIELD_NAME_AUTHORIZATION;
144 extern const char *HTTPStd_FIELD_NAME_CACHE_CONTROL;
145 extern const char *HTTPStd_FIELD_NAME_CONNECTION;
146 extern const char *HTTPStd_FIELD_NAME_CONTENT_ENCODING;
147 extern const char *HTTPStd_FIELD_NAME_CONTENT_LANGUAGE;
148 extern const char *HTTPStd_FIELD_NAME_CONTENT_LENGTH;
149 extern const char *HTTPStd_FIELD_NAME_CONTENT_LOCATION;
150 extern const char *HTTPStd_FIELD_NAME_CONTENT_MD5;
151 extern const char *HTTPStd_FIELD_NAME_CONTENT_RANGE;
152 extern const char *HTTPStd_FIELD_NAME_CONTENT_TYPE;
153 extern const char *HTTPStd_FIELD_NAME_COOKIE;
154 extern const char *HTTPStd_FIELD_NAME_DATE;
155 extern const char *HTTPStd_FIELD_NAME_ETAG;
156 extern const char *HTTPStd_FIELD_NAME_EXPECT;
157 extern const char *HTTPStd_FIELD_NAME_EXPIRES;
158 extern const char *HTTPStd_FIELD_NAME_FROM;
159 extern const char *HTTPStd_FIELD_NAME_HOST;
160 extern const char *HTTPStd_FIELD_NAME_IF_MATCH;
161 extern const char *HTTPStd_FIELD_NAME_IF_MODIFIED_SINCE;
162 extern const char *HTTPStd_FIELD_NAME_IF_NONE_MATCH;
163 extern const char *HTTPStd_FIELD_NAME_IF_RANGE;
164 extern const char *HTTPStd_FIELD_NAME_IF_UNMODIFIED_SINCE;
165 extern const char *HTTPStd_FIELD_NAME_LAST_MODIFIED;
166 extern const char *HTTPStd_FIELD_NAME_LOCATION;
167 extern const char *HTTPStd_FIELD_NAME_MAX_FORWARDS;
168 extern const char *HTTPStd_FIELD_NAME_ORIGIN;
169 extern const char *HTTPStd_FIELD_NAME_PRAGMA;
170 extern const char *HTTPStd_FIELD_NAME_PROXY_AUTHENTICATE;
171 extern const char *HTTPStd_FIELD_NAME_PROXY_AUTHORIZATION;
172 extern const char *HTTPStd_FIELD_NAME_RANGE;
173 extern const char *HTTPStd_FIELD_NAME_REFERER;
174 extern const char *HTTPStd_FIELD_NAME_RETRY_AFTER;
175 extern const char *HTTPStd_FIELD_NAME_SERVER;
176 extern const char *HTTPStd_FIELD_NAME_TE;
177 extern const char *HTTPStd_FIELD_NAME_TRAILER;
178 extern const char *HTTPStd_FIELD_NAME_TRANSFER_ENCODING;
179 extern const char *HTTPStd_FIELD_NAME_UPGRADE;
180 extern const char *HTTPStd_FIELD_NAME_USER_AGENT;
181 extern const char *HTTPStd_FIELD_NAME_VARY;
182 extern const char *HTTPStd_FIELD_NAME_VIA;
183 extern const char *HTTPStd_FIELD_NAME_WWW_AUTHENTICATE;
184 extern const char *HTTPStd_FIELD_NAME_WARNING;
185 extern const char *HTTPStd_FIELD_NAME_X_FORWARDED_FOR;
186 
189 #ifdef __cplusplus
190 }
191 #endif
192 #endif
const char * HTTPStd_FIELD_NAME_VARY
Definition: httpstd.c:128
const char * HTTPStd_FIELD_NAME_UPGRADE
Definition: httpstd.c:126
Definition: httpstd.h:92
Definition: httpstd.h:97
const char * HTTPStd_FIELD_NAME_CONTENT_MD5
Definition: httpstd.c:97
const char * HTTPStd_FIELD_NAME_PROXY_AUTHENTICATE
Definition: httpstd.c:117
const char * HTTPStd_CONTENT_TYPE_ZIP
Definition: httpstd.c:75
Definition: httpstd.h:89
Definition: httpstd.h:69
Definition: httpstd.h:94
Definition: httpstd.h:96
const char * HTTPStd_FIELD_NAME_CONTENT_RANGE
Definition: httpstd.c:98
const char * HTTPStd_GET
Definition: httpstd.c:52
const char * HTTPStd_HEAD
Definition: httpstd.c:54
const char * HTTPStd_FIELD_NAME_ACCEPT_LANGUAGE
Definition: httpstd.c:86
Definition: httpstd.h:88
Definition: httpstd.h:66
Definition: httpstd.h:80
const char * HTTPStd_FIELD_NAME_LOCATION
Definition: httpstd.c:113
const char * HTTPStd_DELETE
Definition: httpstd.c:57
const char * HTTPStd_CONTENT_TYPE_PDF
Definition: httpstd.c:73
Definition: httpstd.h:103
Definition: httpstd.h:105
const char * HTTPStd_FIELD_NAME_ACCEPT_ENCODING
Definition: httpstd.c:85
const char * HTTPStd_FIELD_NAME_USER_AGENT
Definition: httpstd.c:127
Definition: httpstd.h:101
const char * HTTPStd_FIELD_NAME_ETAG
Definition: httpstd.c:102
const char * HTTPStd_FIELD_NAME_COOKIE
Definition: httpstd.c:100
const char * HTTPStd_FIELD_NAME_TRANSFER_ENCODING
Definition: httpstd.c:125
const char * HTTPStd_CONTENT_TYPE_MPEG
Definition: httpstd.c:72
const char * HTTPStd_POST
Definition: httpstd.c:53
Definition: httpstd.h:71
const char * HTTPStd_FIELD_NAME_CONNECTION
Definition: httpstd.c:92
const char * HTTPStd_FIELD_NAME_TRAILER
Definition: httpstd.c:124
const char * HTTPStd_FIELD_NAME_FROM
Definition: httpstd.c:105
Definition: httpstd.h:90
const char * HTTPStd_CONNECT
Definition: httpstd.c:58
const char * HTTPStd_FIELD_NAME_REFERER
Definition: httpstd.c:120
const char * HTTPStd_CONTENT_TYPE_WAV
Definition: httpstd.c:74
const char * HTTPStd_FIELD_NAME_ORIGIN
Definition: httpstd.c:115
const char * HTTPStd_FIELD_NAME_ACCEPT
Definition: httpstd.c:83
const char * HTTPStd_FIELD_NAME_HOST
Definition: httpstd.c:106
const char * HTTPStd_FIELD_NAME_AGE
Definition: httpstd.c:88
Definition: httpstd.h:79
Definition: httpstd.h:93
const char * HTTPStd_CONTENT_TYPE_GIF
Definition: httpstd.c:69
const char * HTTPStd_FIELD_NAME_SERVER
Definition: httpstd.c:122
Definition: httpstd.h:91
const char * HTTPStd_FIELD_NAME_WWW_AUTHENTICATE
Definition: httpstd.c:130
const char * HTTPStd_FIELD_NAME_CONTENT_LANGUAGE
Definition: httpstd.c:94
const char * HTTPStd_FIELD_NAME_EXPIRES
Definition: httpstd.c:104
const char * HTTPStd_FIELD_NAME_PROXY_AUTHORIZATION
Definition: httpstd.c:118
const char * HTTPStd_CONTENT_TYPE_AU
Definition: httpstd.c:66
const char * HTTPStd_FIELD_NAME_VIA
Definition: httpstd.c:129
Definition: httpstd.h:60
const char * HTTPStd_PUT
Definition: httpstd.c:56
Definition: httpstd.h:64
Definition: httpstd.h:67
const char * HTTPStd_FIELD_NAME_EXPECT
Definition: httpstd.c:103
Definition: httpstd.h:81
Definition: httpstd.h:87
Definition: httpstd.h:76
const char * HTTPStd_FIELD_NAME_ACCEPT_RANGES
Definition: httpstd.c:87
Definition: httpstd.h:77
const char * HTTPStd_FIELD_NAME_ALLOW
Definition: httpstd.c:89
const char * HTTPStd_FIELD_NAME_IF_UNMODIFIED_SINCE
Definition: httpstd.c:111
const char * HTTPStd_FIELD_NAME_PRAGMA
Definition: httpstd.c:116
const char * HTTPStd_FIELD_NAME_DATE
Definition: httpstd.c:101
const char * HTTPStd_FIELD_NAME_X_FORWARDED_FOR
Definition: httpstd.c:132
const char * HTTPStd_OPTIONS
Definition: httpstd.c:55
const char * HTTPStd_FIELD_NAME_IF_MATCH
Definition: httpstd.c:107
const char * HTTPStd_FIELD_NAME_CONTENT_LENGTH
Definition: httpstd.c:95
Definition: httpstd.h:100
const char * HTTPStd_FIELD_NAME_CACHE_CONTROL
Definition: httpstd.c:91
const char * HTTPStd_FIELD_NAME_TE
Definition: httpstd.c:123
const char * HTTPStd_FIELD_NAME_CONTENT_TYPE
Definition: httpstd.c:99
HTTPStd_STATUS_CODE
Definition: httpstd.h:58
Definition: httpstd.h:84
const char * HTTPStd_CONTENT_TYPE_CSS
Definition: httpstd.c:67
const char * HTTPStd_CONTENT_TYPE_PLAIN
Definition: httpstd.c:76
Definition: httpstd.h:83
const char * HTTPStd_FIELD_NAME_MAX_FORWARDS
Definition: httpstd.c:114
const char * HTTPStd_CONTENT_TYPE_JPG
Definition: httpstd.c:71
const char * HTTPStd_FIELD_NAME_IF_RANGE
Definition: httpstd.c:110
Definition: httpstd.h:82
Definition: httpstd.h:75
const char * HTTPStd_FIELD_NAME_CONTENT_LOCATION
Definition: httpstd.c:96
Definition: httpstd.h:73
Definition: httpstd.h:68
const char * HTTPStd_CONTENT_TYPE_DOC
Definition: httpstd.c:68
Definition: httpstd.h:62
const char * HTTPStd_FIELD_NAME_CONTENT_ENCODING
Definition: httpstd.c:93
Definition: httpstd.h:104
const char * HTTPStd_FIELD_NAME_ACCEPT_CHARSET
Definition: httpstd.c:84
const char * HTTPStd_FIELD_NAME_IF_NONE_MATCH
Definition: httpstd.c:109
const char * HTTPStd_FIELD_NAME_AUTHORIZATION
Definition: httpstd.c:90
const char * HTTPStd_CONTENT_TYPE_APPLET
Definition: httpstd.c:65
const char * HTTPStd_FIELD_NAME_RETRY_AFTER
Definition: httpstd.c:121
Definition: httpstd.h:59
const char * HTTPStd_FIELD_NAME_WARNING
Definition: httpstd.c:131
Definition: httpstd.h:63
const char * HTTPStd_FIELD_NAME_RANGE
Definition: httpstd.c:119
Definition: httpstd.h:98
Definition: httpstd.h:74
Definition: httpstd.h:102
const char * HTTPStd_CONTENT_TYPE_HTML
Definition: httpstd.c:70
Definition: httpstd.h:85
const char * HTTPStd_FIELD_NAME_LAST_MODIFIED
Definition: httpstd.c:112
const char * HTTPStd_FIELD_NAME_IF_MODIFIED_SINCE
Definition: httpstd.c:108
Definition: httpstd.h:72
Definition: httpstd.h:107
Copyright 2015, Texas Instruments Incorporated