Searched refs:http_types (Results 1 – 7 of 7) sorted by relevance
| /wasmtime-44.0.1/crates/test-programs/src/bin/ |
| H A D | p2_http_outbound_request_content_length.rs | 1 use test_programs::wasi::http::types as http_types; 3 fn make_request() -> http_types::OutgoingRequest { in make_request() 4 let request = http_types::OutgoingRequest::new( in make_request() 5 http_types::Headers::from_list(&[("Content-Length".to_string(), b"11".to_vec())]).unwrap(), in make_request() 9 .set_method(&http_types::Method::Post) in make_request() 12 .set_scheme(Some(&http_types::Scheme::Http)) in make_request() 38 http_types::OutgoingBody::finish(outgoing_body, None).expect("enough written") in main() 57 matches!(&e, http_types::ErrorCode::HttpRequestBodySize(Some(3))), in main() 75 http_types::http_error_code(&e) in main() 83 Some(http_types::ErrorCode::HttpRequestBodySize(Some(18))) in main() [all …]
|
| H A D | p2_http_outbound_request_response_build.rs | 1 use test_programs::wasi::http::types as http_types; 6 let headers = http_types::Headers::from_list(&[( in main() 11 let request = http_types::OutgoingRequest::new(headers); in main() 14 .set_method(&http_types::Method::Get) in main() 17 .set_scheme(Some(&http_types::Scheme::Https)) in main() 30 let headers = http_types::Headers::from_list(&[( in main() 35 let response = http_types::OutgoingResponse::new(headers); in main() 44 let req = http_types::OutgoingRequest::new(http_types::Fields::new()); in main() 47 req.set_method(&http_types::Method::Other("invalid method".to_string())) in main() 57 req.set_scheme(Some(&http_types::Scheme::Other("bad\nscheme".to_string()))) in main()
|
| /wasmtime-44.0.1/crates/test-programs/src/ |
| H A D | http.rs | 1 use crate::wasi::http::{outgoing_handler, types as http_types}; 7 pub status: http_types::StatusCode, 34 method: http_types::Method, in request() 35 scheme: http_types::Scheme, in request() 47 let headers = http_types::Headers::from_list( in request() 58 let request = http_types::OutgoingRequest::new(headers); in request() 77 let options = http_types::RequestOptions::new(); in request() 127 http_types::OutgoingBody::finish(outgoing_body, None)?; in request()
|
| /wasmtime-44.0.1/crates/component-macro/tests/expanded/ |
| H A D | share-types.rs | 174 D: foo::foo::http_types::HostWithStore + http_fetch::HostWithStore, in add_to_linker() 175 for<'a> D::Data<'a>: foo::foo::http_types::Host + http_fetch::Host, in add_to_linker() 178 foo::foo::http_types::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 190 pub mod http_types { module 257 pub type Request = super::foo::foo::http_types::Request; 262 pub type Response = super::foo::foo::http_types::Response; 306 pub type Request = super::super::foo::foo::http_types::Request; 311 pub type Response = super::super::foo::foo::http_types::Response;
|
| H A D | share-types_async.rs | 174 D: foo::foo::http_types::HostWithStore + http_fetch::HostWithStore + Send, in add_to_linker() 175 for<'a> D::Data<'a>: foo::foo::http_types::Host + http_fetch::Host + Send, in add_to_linker() 178 foo::foo::http_types::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 190 pub mod http_types { module 257 pub type Request = super::foo::foo::http_types::Request; 262 pub type Response = super::foo::foo::http_types::Response; 314 pub type Request = super::super::foo::foo::http_types::Request; 319 pub type Response = super::super::foo::foo::http_types::Response;
|
| H A D | share-types_concurrent.rs | 174 D: foo::foo::http_types::HostWithStore + http_fetch::HostWithStore + Send, in add_to_linker() 175 for<'a> D::Data<'a>: foo::foo::http_types::Host + http_fetch::Host + Send, in add_to_linker() 178 foo::foo::http_types::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 190 pub mod http_types { module 257 pub type Request = super::foo::foo::http_types::Request; 262 pub type Response = super::foo::foo::http_types::Response; 303 pub type Request = super::super::foo::foo::http_types::Request; 308 pub type Response = super::super::foo::foo::http_types::Response;
|
| H A D | share-types_tracing_async.rs | 174 D: foo::foo::http_types::HostWithStore + http_fetch::HostWithStore + Send, in add_to_linker() 175 for<'a> D::Data<'a>: foo::foo::http_types::Host + http_fetch::Host + Send, in add_to_linker() 178 foo::foo::http_types::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 190 pub mod http_types { module 257 pub type Request = super::foo::foo::http_types::Request; 262 pub type Response = super::foo::foo::http_types::Response; 330 pub type Request = super::super::foo::foo::http_types::Request; 335 pub type Response = super::super::foo::foo::http_types::Response;
|