113498266Sopenharmony_ci#ifndef HEADER_CURL_URL_H 213498266Sopenharmony_ci#define HEADER_CURL_URL_H 313498266Sopenharmony_ci/*************************************************************************** 413498266Sopenharmony_ci * _ _ ____ _ 513498266Sopenharmony_ci * Project ___| | | | _ \| | 613498266Sopenharmony_ci * / __| | | | |_) | | 713498266Sopenharmony_ci * | (__| |_| | _ <| |___ 813498266Sopenharmony_ci * \___|\___/|_| \_\_____| 913498266Sopenharmony_ci * 1013498266Sopenharmony_ci * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 1113498266Sopenharmony_ci * 1213498266Sopenharmony_ci * This software is licensed as described in the file COPYING, which 1313498266Sopenharmony_ci * you should have received as part of this distribution. The terms 1413498266Sopenharmony_ci * are also available at https://curl.se/docs/copyright.html. 1513498266Sopenharmony_ci * 1613498266Sopenharmony_ci * You may opt to use, copy, modify, merge, publish, distribute and/or sell 1713498266Sopenharmony_ci * copies of the Software, and permit persons to whom the Software is 1813498266Sopenharmony_ci * furnished to do so, under the terms of the COPYING file. 1913498266Sopenharmony_ci * 2013498266Sopenharmony_ci * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 2113498266Sopenharmony_ci * KIND, either express or implied. 2213498266Sopenharmony_ci * 2313498266Sopenharmony_ci * SPDX-License-Identifier: curl 2413498266Sopenharmony_ci * 2513498266Sopenharmony_ci ***************************************************************************/ 2613498266Sopenharmony_ci#include "curl_setup.h" 2713498266Sopenharmony_ci 2813498266Sopenharmony_ci/* 2913498266Sopenharmony_ci * Prototypes for library-wide functions provided by url.c 3013498266Sopenharmony_ci */ 3113498266Sopenharmony_ci 3213498266Sopenharmony_ciCURLcode Curl_init_do(struct Curl_easy *data, struct connectdata *conn); 3313498266Sopenharmony_ciCURLcode Curl_open(struct Curl_easy **curl); 3413498266Sopenharmony_ciCURLcode Curl_init_userdefined(struct Curl_easy *data); 3513498266Sopenharmony_ci 3613498266Sopenharmony_civoid Curl_freeset(struct Curl_easy *data); 3713498266Sopenharmony_ciCURLcode Curl_uc_to_curlcode(CURLUcode uc); 3813498266Sopenharmony_ciCURLcode Curl_close(struct Curl_easy **datap); /* opposite of curl_open() */ 3913498266Sopenharmony_ciCURLcode Curl_connect(struct Curl_easy *, bool *async, bool *protocol_connect); 4013498266Sopenharmony_civoid Curl_disconnect(struct Curl_easy *data, 4113498266Sopenharmony_ci struct connectdata *, bool dead_connection); 4213498266Sopenharmony_ciCURLcode Curl_setup_conn(struct Curl_easy *data, 4313498266Sopenharmony_ci bool *protocol_done); 4413498266Sopenharmony_civoid Curl_free_request_state(struct Curl_easy *data); 4513498266Sopenharmony_ciCURLcode Curl_parse_login_details(const char *login, const size_t len, 4613498266Sopenharmony_ci char **userptr, char **passwdptr, 4713498266Sopenharmony_ci char **optionsptr); 4813498266Sopenharmony_ci 4913498266Sopenharmony_ci/* Get protocol handler for a URI scheme 5013498266Sopenharmony_ci * @param scheme URI scheme, case-insensitive 5113498266Sopenharmony_ci * @return NULL of handler not found 5213498266Sopenharmony_ci */ 5313498266Sopenharmony_ciconst struct Curl_handler *Curl_get_scheme_handler(const char *scheme); 5413498266Sopenharmony_ciconst struct Curl_handler *Curl_getn_scheme_handler(const char *scheme, 5513498266Sopenharmony_ci size_t len); 5613498266Sopenharmony_ci 5713498266Sopenharmony_ci#define CURL_DEFAULT_PROXY_PORT 1080 /* default proxy port unless specified */ 5813498266Sopenharmony_ci#define CURL_DEFAULT_HTTPS_PROXY_PORT 443 /* default https proxy port unless 5913498266Sopenharmony_ci specified */ 6013498266Sopenharmony_ci 6113498266Sopenharmony_ci#ifdef CURL_DISABLE_VERBOSE_STRINGS 6213498266Sopenharmony_ci#define Curl_verboseconnect(x,y) Curl_nop_stmt 6313498266Sopenharmony_ci#else 6413498266Sopenharmony_civoid Curl_verboseconnect(struct Curl_easy *data, struct connectdata *conn); 6513498266Sopenharmony_ci#endif 6613498266Sopenharmony_ci 6713498266Sopenharmony_ci#if defined(USE_HTTP2) || defined(USE_HTTP3) 6813498266Sopenharmony_civoid Curl_data_priority_clear_state(struct Curl_easy *data); 6913498266Sopenharmony_ci#else 7013498266Sopenharmony_ci#define Curl_data_priority_clear_state(x) 7113498266Sopenharmony_ci#endif /* !(defined(USE_HTTP2) || defined(USE_HTTP3)) */ 7213498266Sopenharmony_ci 7313498266Sopenharmony_ci#ifdef USE_NGHTTP2 7413498266Sopenharmony_ciCURLcode Curl_data_priority_add_child(struct Curl_easy *parent, 7513498266Sopenharmony_ci struct Curl_easy *child, 7613498266Sopenharmony_ci bool exclusive); 7713498266Sopenharmony_ci#else 7813498266Sopenharmony_ci#define Curl_data_priority_add_child(x, y, z) CURLE_NOT_BUILT_IN 7913498266Sopenharmony_ci#endif 8013498266Sopenharmony_ci 8113498266Sopenharmony_ci#endif /* HEADER_CURL_URL_H */ 82