mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-20 10:35:34 +00:00
65a4472a0d
In general it seems a bad idea to have two http-strings.c files as this precludes to have them both in the Contiki library. However as it stands it seems most reasonable to have one http-strings.c file be a clean superset of all usecases in order to allow them to run together in a single binary. As webserver/http-strings.c already contained strings not present in webbrowser/http-strings.c it seems reasonable to consider webserver/http-strings.c as the superset described. From that perspective it is appropriate to remove all strings from webbrowser/http-strings.c which are not used by the web browser in order to save memory otherwise wasted.
37 lines
1018 B
C
37 lines
1018 B
C
const char http_http[8] =
|
|
/* "http://" */
|
|
{0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, };
|
|
const char http_200[5] =
|
|
/* "200 " */
|
|
{0x32, 0x30, 0x30, 0x20, };
|
|
const char http_301[5] =
|
|
/* "301 " */
|
|
{0x33, 0x30, 0x31, 0x20, };
|
|
const char http_302[5] =
|
|
/* "302 " */
|
|
{0x33, 0x30, 0x32, 0x20, };
|
|
const char http_get[5] =
|
|
/* "GET " */
|
|
{0x47, 0x45, 0x54, 0x20, };
|
|
const char http_10[9] =
|
|
/* "HTTP/1.0" */
|
|
{0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, };
|
|
const char http_11[9] =
|
|
/* "HTTP/1.1" */
|
|
{0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x31, };
|
|
const char http_content_type[15] =
|
|
/* "content-type: " */
|
|
{0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, };
|
|
const char http_location[11] =
|
|
/* "location: " */
|
|
{0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, };
|
|
const char http_host[7] =
|
|
/* "Host: " */
|
|
{0x48, 0x6f, 0x73, 0x74, 0x3a, 0x20, };
|
|
const char http_crnl[3] =
|
|
/* "\r\n" */
|
|
{0xd, 0xa, };
|
|
const char http_html[6] =
|
|
/* ".html" */
|
|
{0x2e, 0x68, 0x74, 0x6d, 0x6c, };
|