16dbb5987Sopenharmony_ci[package] 26dbb5987Sopenharmony_ciname = "ylong_http_client" 36dbb5987Sopenharmony_civersion = "1.0.0" 46dbb5987Sopenharmony_ciedition = "2021" 56dbb5987Sopenharmony_cidescription = "Ylong HTTP Client implementation" 66dbb5987Sopenharmony_cilicense = "Apache-2.0" 76dbb5987Sopenharmony_cirepository = "https://gitee.com/openharmony/commonlibrary_rust_ylong_http" 86dbb5987Sopenharmony_cikeywords = ["ylong", "http", "client"] 96dbb5987Sopenharmony_ci 106dbb5987Sopenharmony_ci[dependencies] 116dbb5987Sopenharmony_ciylong_http = { path = "../ylong_http" } 126dbb5987Sopenharmony_ciquiche = { version = "0.22.0", features = ["ffi"], optional = true } 136dbb5987Sopenharmony_cilibc = { version = "0.2.134", optional = true } 146dbb5987Sopenharmony_citokio = { version = "1.20.1", features = ["io-util", "net", "rt", "rt-multi-thread", "macros", "sync", "time"], optional = true } 156dbb5987Sopenharmony_ciylong_runtime = { git = "https://gitee.com/openharmony/commonlibrary_rust_ylong_runtime.git", features = ["net", "sync", "fs", "macros", "time"], optional = true } 166dbb5987Sopenharmony_ci 176dbb5987Sopenharmony_ci[dev-dependencies] 186dbb5987Sopenharmony_cihyper = { version = "0.14.23", features = ["http1", "http2", "tcp", "server"] } 196dbb5987Sopenharmony_ciopenssl = { version = "0.10.29" } 206dbb5987Sopenharmony_citokio-openssl = { version = "0.6.3" } 216dbb5987Sopenharmony_ci 226dbb5987Sopenharmony_ci[features] 236dbb5987Sopenharmony_cidefault = [] 246dbb5987Sopenharmony_cifull = [ 256dbb5987Sopenharmony_ci "tokio_base", 266dbb5987Sopenharmony_ci "sync", 276dbb5987Sopenharmony_ci "async", 286dbb5987Sopenharmony_ci "http1_1", 296dbb5987Sopenharmony_ci "tls_default", 306dbb5987Sopenharmony_ci] 316dbb5987Sopenharmony_ci 326dbb5987Sopenharmony_cisync = [] # Uses sync interfaces. 336dbb5987Sopenharmony_ciasync = [] # Uses async interfaces. 346dbb5987Sopenharmony_cihttp1_1 = ["ylong_http/http1_1"] # Uses HTTP/1.1. 356dbb5987Sopenharmony_cihttp2 = ["ylong_http/http2", "ylong_http/huffman"] # Uses HTTP/2. 366dbb5987Sopenharmony_cihttp3 = ["ylong_http/http3", "quiche", "ylong_http/huffman"] # Uses HTTP/3. 376dbb5987Sopenharmony_ci 386dbb5987Sopenharmony_citokio_base = ["tokio", "ylong_http/tokio_base"] # Uses tokio runtime. 396dbb5987Sopenharmony_ciylong_base = ["ylong_runtime", "ylong_http/ylong_base"] # Uses ylong runtime. 406dbb5987Sopenharmony_ci 416dbb5987Sopenharmony_citls_default = ["c_openssl_3_0"] 426dbb5987Sopenharmony_ci__tls = [] # Not open to user, only mark to use tls for developer. 436dbb5987Sopenharmony_ci__c_openssl = ["__tls", "libc"] # Not open to user, only mark to use tls by C-openssl for developer. 446dbb5987Sopenharmony_cic_openssl_1_1 = ["__c_openssl"] # Uses TLS by FFI of C-openssl 1.1. 456dbb5987Sopenharmony_cic_openssl_3_0 = ["__c_openssl"] # Uses TLS by FFI of C-openssl 3.0. 466dbb5987Sopenharmony_cic_boringssl = ["__tls", "libc"] 476dbb5987Sopenharmony_ci 486dbb5987Sopenharmony_ci[[example]] 496dbb5987Sopenharmony_ciname = "async_certs_adapter" 506dbb5987Sopenharmony_cipath = "examples/async_certs_adapter.rs" 516dbb5987Sopenharmony_cirequired-features = ["async", "http1_1", "ylong_base", "__c_openssl"] 526dbb5987Sopenharmony_ci 536dbb5987Sopenharmony_ci[[example]] 546dbb5987Sopenharmony_ciname = "async_http" 556dbb5987Sopenharmony_cipath = "examples/async_http.rs" 566dbb5987Sopenharmony_cirequired-features = ["async", "http1_1", "ylong_base"] 576dbb5987Sopenharmony_ci 586dbb5987Sopenharmony_ci[[example]] 596dbb5987Sopenharmony_ciname = "async_http_multi" 606dbb5987Sopenharmony_cipath = "examples/async_http_multi.rs" 616dbb5987Sopenharmony_cirequired-features = ["async", "http1_1", "ylong_base"] 626dbb5987Sopenharmony_ci 636dbb5987Sopenharmony_ci[[example]] 646dbb5987Sopenharmony_ciname = "async_https_outside" 656dbb5987Sopenharmony_cipath = "./examples/async_https_outside.rs" 666dbb5987Sopenharmony_cirequired-features = ["async", "http1_1", "__tls", "tokio_base"] 676dbb5987Sopenharmony_ci 686dbb5987Sopenharmony_ci[[example]] 696dbb5987Sopenharmony_ciname = "sync_https_outside" 706dbb5987Sopenharmony_cipath = "./examples/sync_https_outside.rs" 716dbb5987Sopenharmony_cirequired-features = ["sync", "http1_1", "__tls"] 726dbb5987Sopenharmony_ci 736dbb5987Sopenharmony_ci[[example]] 746dbb5987Sopenharmony_ciname = "async_proxy_http" 756dbb5987Sopenharmony_cipath = "examples/async_proxy_http.rs" 766dbb5987Sopenharmony_cirequired-features = ["async", "http1_1", "tokio_base"] 776dbb5987Sopenharmony_ci 786dbb5987Sopenharmony_ci[[example]] 796dbb5987Sopenharmony_ciname = "async_redirect_http" 806dbb5987Sopenharmony_cipath = "examples/async_redirect_http.rs" 816dbb5987Sopenharmony_cirequired-features = ["async", "http1_1", "tokio_base"] 826dbb5987Sopenharmony_ci 836dbb5987Sopenharmony_ci[[example]] 846dbb5987Sopenharmony_ciname = "sync_http" 856dbb5987Sopenharmony_cipath = "examples/sync_http.rs" 866dbb5987Sopenharmony_cirequired-features = ["sync", "http1_1"] 876dbb5987Sopenharmony_ci 886dbb5987Sopenharmony_ci[[example]] 896dbb5987Sopenharmony_ciname = "sync_redirect_http" 906dbb5987Sopenharmony_cipath = "examples/sync_redirect_http.rs" 916dbb5987Sopenharmony_cirequired-features = ["sync", "http1_1"] 926dbb5987Sopenharmony_ci 936dbb5987Sopenharmony_ci[[example]] 946dbb5987Sopenharmony_ciname = "sync_proxy_http" 956dbb5987Sopenharmony_cipath = "examples/sync_proxy_http.rs" 966dbb5987Sopenharmony_cirequired-features = ["sync", "http1_1"] 97