| /mOS-networking-stack/util/include/ |
| H A D | http_parsing.h | 20 char* http_header_str_val(const char* buf, const char *key, const int key_len, char* value, int val… 21 long int http_header_long_val(const char* buf, const char *key, int key_len);
|
| /mOS-networking-stack/samples/lighttpd-1.4.32/src/ |
| H A D | mod_cgi.c | 244 int key_len; in cgi_response_parse() local 279 key_len = value - key; in cgi_response_parse() 288 buffer_copy_string_len(ds->key, key, key_len); in cgi_response_parse() 293 switch(key_len) { in cgi_response_parse() 295 if (0 == strncasecmp(key, "Date", key_len)) { in cgi_response_parse() 300 if (0 == strncasecmp(key, "Status", key_len)) { in cgi_response_parse() 719 dst = malloc(key_len + val_len + 2); in cgi_env_add() 720 memcpy(dst, key, key_len); in cgi_env_add() 721 dst[key_len] = '='; in cgi_env_add() 722 memcpy(dst + key_len + 1, val, val_len); in cgi_env_add() [all …]
|
| H A D | mod_fastcgi.c | 764 memcpy(dst, key, key_len); in env_add() 765 dst[key_len] = '='; in env_add() 767 dst[key_len + 1 + val_len] = '\0'; in env_add() 1576 len = key_len + val_len; in fcgi_env_add() 1578 len += key_len > 127 ? 4 : 1; in fcgi_env_add() 1593 if (key_len > 0x7fffffff) key_len = 0x7fffffff; in fcgi_env_add() 1598 if (key_len > 127) { in fcgi_env_add() 1617 env->used += key_len; in fcgi_env_add() 2191 int key_len; in fcgi_response_parse() local 2209 key_len = value - key; in fcgi_response_parse() [all …]
|
| H A D | mod_magnet.c | 397 size_t key_len = 0; in magnet_status_get() local 399 const char *key = luaL_checklstring(L, 2, &key_len); in magnet_status_get() 406 di = status_counter_get_counter(srv, key, key_len); in magnet_status_get() 414 size_t key_len = 0; in magnet_status_set() local 417 const char *key = luaL_checklstring(L, 2, &key_len); in magnet_status_set() 425 status_counter_set(srv, key, key_len, counter); in magnet_status_set() 706 size_t key_len, val_len; in magnet_copy_response_header() local 708 key = lua_tolstring(L, -2, &key_len); in magnet_copy_response_header() 711 response_header_overwrite(srv, con, key, key_len, val, val_len); in magnet_copy_response_header()
|
| H A D | request.c | 286 int is_key = 1, key_len = 0, is_ws_after_key = 0, in_folding; in http_request_parse() local 597 key_len = i - first; in http_request_parse() 636 key_len = i - first; in http_request_parse() 767 if (!key || !key_len) { in http_request_parse() 786 buffer_copy_string_len(key_b, key, key_len); in http_request_parse() 811 buffer_copy_string_len(ds->key, key, key_len); in http_request_parse() 1032 key_len = 0; in http_request_parse()
|
| H A D | mod_scgi.c | 616 dst = malloc(key_len + val_len + 3); in env_add() 617 memcpy(dst, key, key_len); in env_add() 618 dst[key_len] = '='; in env_add() 620 memcpy(dst + key_len + 1, val, val_len + 1); in env_add() 1294 len = key_len + val_len + 2; in scgi_env_add() 1298 memcpy(env->ptr + env->used, key, key_len); in scgi_env_add() 1299 env->ptr[env->used + key_len] = '\0'; in scgi_env_add() 1300 env->used += key_len + 1; in scgi_env_add() 1701 int key_len; in scgi_response_parse() local 1732 key_len = value - key; in scgi_response_parse() [all …]
|
| H A D | http_auth.c | 914 int key_len; member 991 if ((0 == strncmp(c, dkv[i].key, dkv[i].key_len))) { in http_auth_digest_check() 992 if ((c[dkv[i].key_len] == '"') && in http_auth_digest_check() 993 (NULL != (e = strchr(c + dkv[i].key_len + 1, '"')))) { in http_auth_digest_check() 995 *(dkv[i].ptr) = c + dkv[i].key_len + 1; in http_auth_digest_check() 999 } else if (NULL != (e = strchr(c + dkv[i].key_len, ','))) { in http_auth_digest_check() 1001 *(dkv[i].ptr) = c + dkv[i].key_len; in http_auth_digest_check() 1007 *(dkv[i].ptr) = c + dkv[i].key_len; in http_auth_digest_check()
|
| H A D | mod_proxy.c | 566 int key_len; in proxy_response_parse() local 597 key_len = value - key; in proxy_response_parse() 605 switch(key_len) { in proxy_response_parse() 607 if (0 == strncasecmp(key, "Date", key_len)) { in proxy_response_parse() 612 if (0 == strncasecmp(key, "Location", key_len)) { in proxy_response_parse() 617 if (0 == strncasecmp(key, "Connection", key_len)) { in proxy_response_parse() 622 if (0 == strncasecmp(key, "Content-Length", key_len)) { in proxy_response_parse() 635 buffer_copy_string_len(ds->key, key, key_len); in proxy_response_parse()
|
| H A D | mod_cml_lua.c | 94 static int c_to_lua_push(lua_State *L, int tbl, const char *key, size_t key_len, const char *val, s… in c_to_lua_push() argument 95 lua_pushlstring(L, key, key_len); in c_to_lua_push()
|
| H A D | array.h | 171 void array_set_key_value(array *hdrs, const char *key, size_t key_len, const char *value, size_t va…
|
| H A D | array.c | 150 void array_set_key_value(array *hdrs, const char *key, size_t key_len, const char *value, size_t va… in array_set_key_value() argument 162 buffer_copy_string_len(ds_dst->key, key, key_len); in array_set_key_value()
|
| /mOS-networking-stack/util/ |
| H A D | http_parsing.c | 76 http_header_long_val(const char * response, const char* key, int key_len) in http_header_long_val() argument 81 char *temp = http_header_str_val(response, key, key_len, value, C_TYPE_LEN); in http_header_long_val()
|