/third_party/libcoap/tests/ |
H A D | test_uri.c | 21 coap_uri_t uri; in t_parse_uri1() local 23 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri1() 25 CU_ASSERT(uri.host.length == 3); in t_parse_uri1() 26 CU_ASSERT_NSTRING_EQUAL(uri.host.s, "::1", 3); in t_parse_uri1() 28 CU_ASSERT(uri.port == COAP_DEFAULT_PORT); in t_parse_uri1() 30 CU_ASSERT(uri.path.length == 16); in t_parse_uri1() 31 CU_ASSERT_NSTRING_EQUAL(uri.path.s, ".well-known/core", 16); in t_parse_uri1() 33 CU_ASSERT(uri.query.length == 0); in t_parse_uri1() 34 CU_ASSERT(uri.query.s == NULL); in t_parse_uri1() 36 CU_FAIL("uri parse in t_parse_uri1() 44 coap_uri_t uri; t_parse_uri2() local 67 coap_uri_t uri; t_parse_uri3() local 89 coap_uri_t uri; t_parse_uri4() local 99 coap_uri_t uri; t_parse_uri5() local 122 coap_uri_t uri; t_parse_uri6() local 145 coap_uri_t uri; t_parse_uri7() local 187 coap_uri_t uri; t_parse_uri8() local 204 coap_uri_t uri; t_parse_uri9() local 220 coap_uri_t uri; t_parse_uri10() local 244 coap_uri_t uri; t_parse_uri11() local 285 coap_uri_t uri; t_parse_uri12() local [all...] |
/third_party/skia/third_party/externals/microhttpd/src/examples/ |
H A D | mhd2spdy_structures.c | 28 free_uri(struct URI * uri) in free_uri() argument 30 if(NULL != uri) in free_uri() 32 free(uri->full_uri); in free_uri() 33 free(uri->scheme); in free_uri() 34 free(uri->host_and_port); in free_uri() 35 free(uri->host); in free_uri() 36 free(uri->path); in free_uri() 37 free(uri->path_and_more); in free_uri() 38 free(uri->query); in free_uri() 39 free(uri in free_uri() 69 parse_uri(regex_t * preg, char * full_uri, struct URI ** uri) parse_uri() argument [all...] |
/third_party/libcoap/src/ |
H A D | coap_uri.c | 65 coap_uri_t *uri, in coap_split_uri_sub() 72 if (!str_var || !uri || len == 0) in coap_split_uri_sub() 75 memset(uri, 0, sizeof(coap_uri_t)); in coap_split_uri_sub() 76 uri->port = COAP_DEFAULT_PORT; in coap_split_uri_sub() 108 uri->scheme = coap_uri_scheme[i].scheme; in coap_split_uri_sub() 109 uri->port = coap_uri_scheme[i].port; in coap_split_uri_sub() 119 switch (uri->scheme) { in coap_split_uri_sub() 156 coap_log_warn("Unsupported URI type %d\n", uri->scheme); in coap_split_uri_sub() 179 COAP_SET_STR(&uri->host, q - p, p); in coap_split_uri_sub() 187 uri in coap_split_uri_sub() 63 coap_split_uri_sub(const uint8_t *str_var, size_t len, coap_uri_t *uri, coap_uri_check_t check_proxy) coap_split_uri_sub() argument 269 coap_split_uri(const uint8_t *str_var, size_t len, coap_uri_t *uri) coap_split_uri() argument 274 coap_split_proxy_uri(const uint8_t *str_var, size_t len, coap_uri_t *uri) coap_split_proxy_uri() argument 279 coap_uri_into_options(const coap_uri_t *uri, const coap_address_t *dst, coap_optlist_t **optlist_chain, int create_port_host_opt, uint8_t *_buf, size_t _buflen) coap_uri_into_options() argument 638 coap_new_uri(const uint8_t *uri, unsigned int length) coap_new_uri() argument 657 coap_clone_uri(const coap_uri_t *uri) coap_clone_uri() argument 699 coap_delete_uri(coap_uri_t *uri) coap_delete_uri() argument 779 coap_uri_t uri; coap_get_uri_path() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
H A D | browser.c | 62 const char *uri) in process_request_starting_uri() 66 if (g_str_has_prefix(uri, "osu://")) { in process_request_starting_uri() 67 ctx->success = atoi(uri + 6); in process_request_starting_uri() 69 } else if (g_str_has_prefix(uri, "http://localhost:12345")) { in process_request_starting_uri() 107 const gchar *uri = webkit_uri_request_get_uri(req); in view_cb_resource_load_starting() local 109 wpa_printf(MSG_DEBUG, "BROWSER:%s uri=%s", __func__, uri); in view_cb_resource_load_starting() 110 process_request_starting_uri(ctx, uri); in view_cb_resource_load_starting() 138 const gchar *uri; in view_cb_decide_policy() local 143 uri in view_cb_decide_policy() 61 process_request_starting_uri(struct browser_context *ctx, const char *uri) process_request_starting_uri() argument 163 const char *uri = NULL; view_cb_mouse_target_changed() local 227 const gchar *uri = webkit_network_request_get_uri(req); view_cb_resource_request_starting() local 257 const gchar *uri; view_cb_download_requested() local 264 view_cb_hovering_over_link(WebKitWebView *view, gchar *title, gchar *uri, struct browser_context *ctx) view_cb_hovering_over_link() argument [all...] |
/third_party/node/test/fixtures/wpt/common/ |
H A D | PrefixedPostMessage.js | 26 PrefixedMessage.prototype.url = function (uri) { 27 function updateUrlParameter (uri, key, value) { 28 var i = uri.indexOf('#'); 29 var hash = (i === -1) ? '' : uri.substr(i); 30 uri = (i === -1) ? uri : uri.substr(0, i); 32 var separator = uri.indexOf('?') !== -1 ? '&' : '?'; 33 uri = (uri [all...] |
H A D | PrefixedLocalStorage.js | 29 PrefixedLocalStorage.prototype.url = function (uri) { 30 function updateUrlParameter (uri, key, value) { 31 var i = uri.indexOf('#'); 32 var hash = (i === -1) ? '' : uri.substr(i); 33 uri = (i === -1) ? uri : uri.substr(0, i); 35 var separator = uri.indexOf('?') !== -1 ? '&' : '?'; 36 uri = (uri [all...] |
/third_party/skia/third_party/externals/spirv-tools/utils/vscode/src/lsp/span/ |
H A D | uri.go | 35 func (uri URI) Filename() string { 36 filename, err := filename(uri) 43 func filename(uri URI) (string, error) { 44 if uri == "" { 47 u, err := url.ParseRequestURI(string(uri)) 52 return "", fmt.Errorf("only file URIs are supported, got %q from %q", u.Scheme, uri) 61 // It will attempt to detect if the string is a file path or uri. 137 uri := u.String() 138 if unescaped, err := url.PathUnescape(uri); err == nil { 139 uri [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/lsp/span/ |
H A D | uri.go | 35 func (uri URI) Filename() string { 36 filename, err := filename(uri) 43 func filename(uri URI) (string, error) { 44 if uri == "" { 47 u, err := url.ParseRequestURI(string(uri)) 52 return "", fmt.Errorf("only file URIs are supported, got %q from %q", u.Scheme, uri) 61 // It will attempt to detect if the string is a file path or uri. 137 uri := u.String() 138 if unescaped, err := url.PathUnescape(uri); err == nil { 139 uri [all...] |
/third_party/spirv-tools/utils/vscode/src/lsp/span/ |
H A D | uri.go | 35 func (uri URI) Filename() string { 36 filename, err := filename(uri) 43 func filename(uri URI) (string, error) { 44 if uri == "" { 47 u, err := url.ParseRequestURI(string(uri)) 52 return "", fmt.Errorf("only file URIs are supported, got %q from %q", u.Scheme, uri) 61 // It will attempt to detect if the string is a file path or uri. 137 uri := u.String() 138 if unescaped, err := url.PathUnescape(uri); err == nil { 139 uri [all...] |
/third_party/cups-filters/cupsfilters/ |
H A D | ipp.c | 76 const char *uri; in resolve_uri() local 100 uri = cupsBackendDeviceURI(pseudo_argv); in resolve_uri() 113 return (uri ? strdup(uri) : NULL); in resolve_uri() 119 check_driverless_support(const char* uri) in check_driverless_support() argument 124 response = get_printer_attributes3(NULL, uri, NULL, 0, NULL, 0, 1, in check_driverless_support() 211 char *uri; in get_printer_attributes5() local 249 "printer-uri-supported", in get_printer_attributes5() 250 "uri-authentication-supported", in get_printer_attributes5() 251 "uri in get_printer_attributes5() 473 ippfind_based_uri_converter(const char *uri, int is_fax) ippfind_based_uri_converter() argument [all...] |
/third_party/node/deps/npm/node_modules/libnpmteam/lib/ |
H A D | index.js | 13 const uri = `/-/org/${eu(scope)}/team` 14 return npmFetch.json(uri, { 26 const uri = `/-/team/${eu(scope)}/${eu(team)}` 27 await npmFetch(uri, { 39 const uri = `/-/team/${eu(scope)}/${eu(team)}/user` 40 return npmFetch.json(uri, { 51 const uri = `/-/team/${eu(scope)}/${eu(team)}/user` 52 await npmFetch(uri, { 66 const uri = `/-/org/${eu(scope)}/team` 67 return npmFetch.json.stream(uri, ' [all...] |
/third_party/libcoap/examples/riot/examples_libcoap_client/ |
H A D | client-coap.c | 124 coap_uri_t uri; in client_coap_init() local 141 len = coap_split_uri((const unsigned char *)coap_uri, strlen(coap_uri), &uri); in client_coap_init() 143 coap_log_warn("Failed to parse uri %s\n", coap_uri); in client_coap_init() 147 snprintf(portbuf, sizeof(portbuf), "%d", uri.port); in client_coap_init() 148 snprintf((char *)buf, sizeof(buf), "%*.*s", (int)uri.host.length, in client_coap_init() 149 (int)uri.host.length, (const char *)uri.host.s); in client_coap_init() 151 len = resolve_address((const char *)buf, portbuf, &dst, 1 << uri.scheme); in client_coap_init() 153 coap_log_warn("Failed to resolve address %*.*s\n", (int)uri.host.length, in client_coap_init() 154 (int)uri in client_coap_init() [all...] |
/third_party/libcoap/examples/lwip/ |
H A D | client-coap.c | 109 coap_uri_t uri; in client_coap_init() local 156 len = coap_split_uri((const unsigned char *)use_uri, strlen(use_uri), &uri); in client_coap_init() 157 LWIP_ASSERT("Failed to parse uri", len == 0); in client_coap_init() 158 LWIP_ASSERT("Unsupported URI type", uri.scheme == COAP_URI_SCHEME_COAP || in client_coap_init() 159 uri.scheme == COAP_URI_SCHEME_COAPS); in client_coap_init() 160 if (uri.scheme == COAP_URI_SCHEME_COAPS) { in client_coap_init() 164 snprintf(portbuf, sizeof(portbuf), "%d", uri.port); in client_coap_init() 165 snprintf((char *)buf, sizeof(buf), "%*.*s", (int)uri.host.length, in client_coap_init() 166 (int)uri.host.length, (const char *)uri in client_coap_init() [all...] |
/third_party/skia/third_party/externals/microhttpd/src/spdy2http/ |
H A D | proxy.c | 189 free_uri(struct URI * uri) in free_uri() argument 191 if(NULL != uri) in free_uri() 193 free(uri->full_uri); in free_uri() 194 free(uri->scheme); in free_uri() 195 free(uri->host_and_port); in free_uri() 196 //free(uri->host_and_port_for_connecting); in free_uri() 197 free(uri->host); in free_uri() 198 free(uri->path); in free_uri() 199 free(uri->path_and_more); in free_uri() 200 free(uri in free_uri() 233 parse_uri(regex_t * preg, const char * full_uri, struct URI ** uri) parse_uri() argument 848 struct URI *uri; standard_request_handler() local [all...] |
/third_party/libcoap/include/coap3/ |
H A D | coap_uri.h | 79 coap_uri_scheme_is_secure(const coap_uri_t *uri) { in coap_uri_scheme_is_secure() argument 80 return uri && ((uri->scheme & COAP_URI_SCHEME_SECURE_MASK) != 0); in coap_uri_scheme_is_secure() 99 * @param uri The URI path to copy. 100 * @param length The length of uri. 104 coap_uri_t *coap_new_uri(const uint8_t *uri, unsigned int length); 111 * @param uri The coap_uri_t structure to copy. 115 coap_uri_t *coap_clone_uri(const coap_uri_t *uri); 120 * @param uri The coap_uri_t structure to remove. 122 void coap_delete_uri(coap_uri_t *uri); [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | concat.c | 64 static av_cold int concat_open(URLContext *h, const char *uri, int flags) in concat_open() argument 74 if (!av_strstart(uri, "concat:", &uri)) { in concat_open() 75 av_log(h, AV_LOG_ERROR, "URL %s lacks prefix\n", uri); in concat_open() 79 for (i = 0, len = 1; uri[i]; i++) { in concat_open() 80 if (uri[i] == *AV_CAT_SEPARATOR) { in concat_open() 91 if (!*uri) in concat_open() 93 for (i = 0; *uri; i++) { in concat_open() 94 /* parsing uri */ in concat_open() 95 len = strcspn(uri, AV_CAT_SEPARATO in concat_open() 210 concatf_open(URLContext *h, const char *uri, int flags) concatf_open() argument [all...] |
/third_party/cups-filters/backend/ |
H A D | beh.c | 36 static int call_backend(char *uri, int argc, char **argv, 48 char *uri, *ptr, *filename; in main() local 96 uri = getenv("DEVICE_URI"); in main() 97 if (!uri) { in main() 103 ptr = strstr(uri, ":/"); in main() 200 "ERROR: URI must be \"beh:/<dd>/<att>/<delay>/<original uri>\"!\n"); in main() 210 call_backend(char *uri, /* I - URI of final destination */ in call_backend() argument 225 strncpy(scheme, uri, sizeof(scheme) - 1); in call_backend() 226 if (strlen(uri) > 1023) in call_backend() 234 if (!strncasecmp(uri, "fil in call_backend() [all...] |
/third_party/lwip/src/apps/http/ |
H A D | http_client.c | 44 * - check request uri for invalid characters? (e.g. encode spaces) 70 /** Set this to 1 to keep server name and uri in request state */ 98 #define HTTPC_REQ_11_FORMAT(uri) HTTPC_REQ_11, uri, HTTPC_CLIENT_AGENT 107 #define HTTPC_REQ_11_HOST_FORMAT(uri, srv_name) HTTPC_REQ_11_HOST, uri, HTTPC_CLIENT_AGENT, srv_name 116 #define HTTPC_REQ_11_PROXY_FORMAT(host, uri, srv_name) HTTPC_REQ_11_PROXY, host, uri, HTTPC_CLIENT_AGENT, srv_name 125 #define HTTPC_REQ_11_PROXY_PORT_FORMAT(host, host_port, uri, srv_name) HTTPC_REQ_11_PROXY_PORT, host, host_port, uri, HTTPC_CLIENT_AGEN 151 char* uri; global() member 487 httpc_create_request_string(const httpc_connection_t *settings, const char* server_name, int server_port, const char* uri, int use_host, char *buffer, size_t buffer_size) httpc_create_request_string() argument 507 httpc_init_connection_common(httpc_state_t **connection, const httpc_connection_t *settings, const char* server_name, u16_t server_port, const char* uri, altcp_recv_fn recv_fn, void* callback_arg, int use_host) httpc_init_connection_common() argument 594 httpc_init_connection(httpc_state_t **connection, const httpc_connection_t *settings, const char* server_name, u16_t server_port, const char* uri, altcp_recv_fn recv_fn, void* callback_arg) httpc_init_connection() argument 605 httpc_init_connection_addr(httpc_state_t **connection, const httpc_connection_t *settings, const ip_addr_t* server_addr, u16_t server_port, const char* uri, altcp_recv_fn recv_fn, void* callback_arg) httpc_init_connection_addr() argument 632 httpc_get_file(const ip_addr_t* server_addr, u16_t port, const char* uri, const httpc_connection_t *settings, altcp_recv_fn recv_fn, void* callback_arg, httpc_state_t **connection) httpc_get_file() argument 677 httpc_get_file_dns(const char* server_name, u16_t port, const char* uri, const httpc_connection_t *settings, altcp_recv_fn recv_fn, void* callback_arg, httpc_state_t **connection) httpc_get_file_dns() argument 818 httpc_get_file_to_disk(const ip_addr_t* server_addr, u16_t port, const char* uri, const httpc_connection_t *settings, void* callback_arg, const char* local_file_name, httpc_state_t **connection) httpc_get_file_to_disk() argument 870 httpc_get_file_dns_to_disk(const char* server_name, u16_t port, const char* uri, const httpc_connection_t *settings, void* callback_arg, const char* local_file_name, httpc_state_t **connection) httpc_get_file_dns_to_disk() argument [all...] |
/third_party/nghttp2/examples/ |
H A D | client.c | 516 static void request_init(struct Request *req, const struct URI *uri) { in request_init() argument 517 req->host = strcopy(uri->host, uri->hostlen); in request_init() 518 req->port = uri->port; in request_init() 519 req->path = strcopy(uri->path, uri->pathlen); in request_init() 520 req->hostport = strcopy(uri->hostport, uri->hostportlen); in request_init() 531 * Fetches the resource denoted by |uri|. 533 static void fetch_uri(const struct URI *uri) { in fetch_uri() argument 627 parse_uri(struct URI *res, const char *uri) parse_uri() argument 710 struct URI uri; main() local [all...] |
/third_party/skia/third_party/externals/microhttpd/src/testspdy/ |
H A D | test_new_connection.c | 632 static void request_init(struct Request *req, const struct URI *uri) in request_init() argument 634 req->host = strcopy(uri->host, uri->hostlen); in request_init() 635 req->port = uri->port; in request_init() 636 req->path = strcopy(uri->path, uri->pathlen); in request_init() 637 req->hostport = strcopy(uri->hostport, uri->hostportlen); in request_init() 651 * Fetches the resource denoted by |uri|. 653 static void fetch_uri(const struct URI *uri) in fetch_uri() argument 733 parse_uri(struct URI *res, const char *uri) parse_uri() argument 882 struct URI uri; childproc() local [all...] |
H A D | test_notls.c | 584 static void request_init(struct Request *req, const struct URI *uri) in request_init() argument 586 req->host = strcopy(uri->host, uri->hostlen); in request_init() 587 req->port = uri->port; in request_init() 588 req->path = strcopy(uri->path, uri->pathlen); in request_init() 589 req->hostport = strcopy(uri->hostport, uri->hostportlen); in request_init() 603 * Fetches the resource denoted by |uri|. 605 static void fetch_uri(const struct URI *uri) in fetch_uri() argument 668 parse_uri(struct URI *res, const char *uri) parse_uri() argument 842 struct URI uri; childproc() local [all...] |
H A D | test_request_response.c | 620 static void request_init(struct Request *req, const struct URI *uri) in request_init() argument 622 req->host = strcopy(uri->host, uri->hostlen); in request_init() 623 req->port = uri->port; in request_init() 624 req->path = strcopy(uri->path, uri->pathlen); in request_init() 625 req->hostport = strcopy(uri->hostport, uri->hostportlen); in request_init() 639 * Fetches the resource denoted by |uri|. 641 static void fetch_uri(const struct URI *uri) in fetch_uri() argument 721 parse_uri(struct URI *res, const char *uri) parse_uri() argument 899 struct URI uri; childproc() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
H A D | browser.c | 67 wpa_printf(MSG_DEBUG, "BROWSER:%s load-status=%d uri=%s", in view_cb_notify_load_status() 79 const gchar *uri = webkit_network_request_get_uri(req); in view_cb_resource_request_starting() local 80 wpa_printf(MSG_DEBUG, "BROWSER:%s uri=%s", __func__, uri); in view_cb_resource_request_starting() 81 if (g_str_has_suffix(uri, "/favicon.ico")) in view_cb_resource_request_starting() 83 if (g_str_has_prefix(uri, "osu://")) { in view_cb_resource_request_starting() 84 ctx->success = atoi(uri + 6); in view_cb_resource_request_starting() 87 if (g_str_has_prefix(uri, "http://localhost:12345")) { in view_cb_resource_request_starting() 118 const gchar *uri; in view_cb_download_requested() local 119 uri in view_cb_download_requested() 125 view_cb_hovering_over_link(WebKitWebView *view, gchar *title, gchar *uri, struct browser_context *ctx) view_cb_hovering_over_link() argument [all...] |
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/ |
H A D | digestauth.c | 140 * @param uri requested URL 151 const char *uri, in digest_calc_response() 163 MD5Update (&md5, uri, strlen(uri)); in digest_calc_response() 386 * H(timestamp ":" method ":" random ":" uri ":" realm) + Hex(timestamp) 392 * @param uri HTTP URI (in MHD, without the arguments ("?k=v") 401 const char *uri, in calculate_nonce() 422 MD5Update (&md5, uri, strlen (uri)); in calculate_nonce() 582 size_t left; /* number of characters left in 'header' for 'uri' */ in MHD_digest_auth_check() 145 digest_calc_response(const char *ha1, const char *nonce, const char *noncecount, const char *cnonce, const char *qop, const char *method, const char *uri, const char *hentity, char *response) digest_calc_response() argument 397 calculate_nonce(uint32_t nonce_time, const char *method, const char *rnd, size_t rnd_size, const char *uri, const char *realm, char *nonce) calculate_nonce() argument 636 char *uri; MHD_digest_auth_check() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/examples/ |
H A D | dpp-qrcode.py | 49 uri = None 52 uri = val.split('=', 1)[1] 54 if not uri: 56 if not uri.startswith('DPP:'): 59 print(uri) 65 res = wpas.request("DPP_QR_CODE " + uri); 100 uri = wpas.request("DPP_BOOTSTRAP_GET_URI %d" % id) 101 print(uri) 105 qr.add_data(uri, optimize=5)
|