Lines Matching refs:url
424 static int get_port(const char *url, struct http_parser_url *u) in get_port() argument
427 return strtol(&url[u->field_data[UF_PORT].off], NULL, 10); in get_port()
429 … if (strncasecmp(&url[u->field_data[UF_SCHEMA].off], "http", u->field_data[UF_SCHEMA].len) == 0) { in get_port()
431 …} else if (strncasecmp(&url[u->field_data[UF_SCHEMA].off], "https", u->field_data[UF_SCHEMA].len) … in get_port()
441 esp_tls_t *esp_tls_conn_http_new(const char *url, const esp_tls_cfg_t *cfg) in esp_tls_conn_http_new() argument
446 http_parser_parse_url(url, strlen(url), 0, &u); in esp_tls_conn_http_new()
452 if (esp_tls_conn_new_sync(&url[u.field_data[UF_HOST].off], u.field_data[UF_HOST].len, in esp_tls_conn_http_new()
453 get_port(url, &u), cfg, tls) == 1) { in esp_tls_conn_http_new()
463 int esp_tls_conn_http_new_async(const char *url, const esp_tls_cfg_t *cfg, esp_tls_t *tls) in esp_tls_conn_http_new_async() argument
468 http_parser_parse_url(url, strlen(url), 0, &u); in esp_tls_conn_http_new_async()
471 return esp_tls_conn_new_async(&url[u.field_data[UF_HOST].off], u.field_data[UF_HOST].len, in esp_tls_conn_http_new_async()
472 get_port(url, &u), cfg, tls); in esp_tls_conn_http_new_async()