| /wasmtime-44.0.1/crates/wasi-http/src/p3/ |
| H A D | conv.rs | 47 impl From<http::Method> for Method { implementation 48 fn from(method: http::Method) -> Self { in from() 53 impl From<&http::Method> for Method { implementation 54 fn from(method: &http::Method) -> Self { in from() 55 if method == http::Method::GET { in from() 79 impl TryFrom<Method> for http::Method { implementation 87 impl TryFrom<&Method> for http::Method { implementation 92 Method::Get => Ok(Self::GET), in try_from() 93 Method::Head => Ok(Self::HEAD), in try_from() 95 Method::Put => Ok(Self::PUT), in try_from() [all …]
|
| /wasmtime-44.0.1/crates/wasi-http/src/p2/ |
| H A D | types.rs | 49 impl From<http::Method> for types::Method { implementation 75 impl TryInto<http::Method> for types::Method { implementation 80 Method::Get => Ok(http::Method::GET), in try_into() 81 Method::Head => Ok(http::Method::HEAD), in try_into() 82 Method::Post => Ok(http::Method::POST), in try_into() 83 Method::Put => Ok(http::Method::PUT), in try_into() 84 Method::Delete => Ok(http::Method::DELETE), in try_into() 85 Method::Connect => Ok(http::Method::CONNECT), in try_into() 86 Method::Options => Ok(http::Method::OPTIONS), in try_into() 87 Method::Trace => Ok(http::Method::TRACE), in try_into() [all …]
|
| H A D | http_impl.rs | 15 use hyper::Method; 42 types::Method::Get => Method::GET, in handle() 43 types::Method::Head => Method::HEAD, in handle() 44 types::Method::Post => Method::POST, in handle() 45 types::Method::Put => Method::PUT, in handle() 46 types::Method::Delete => Method::DELETE, in handle() 47 types::Method::Connect => Method::CONNECT, in handle() 48 types::Method::Options => Method::OPTIONS, in handle() 49 types::Method::Trace => Method::TRACE, in handle() 50 types::Method::Patch => Method::PATCH, in handle() [all …]
|
| /wasmtime-44.0.1/crates/test-programs/src/bin/ |
| H A D | p2_http_outbound_request_invalid_port.rs | 1 use test_programs::wasi::http::types::{Method, Scheme}; 5 Method::Get, in main()
|
| H A D | p2_http_outbound_request_unknown_method.rs | 1 use test_programs::wasi::http::types::{Method, Scheme}; 5 Method::Other("bad\nmethod".to_owned()), in main()
|
| H A D | p2_http_outbound_request_unsupported_scheme.rs | 1 use test_programs::wasi::http::types::{ErrorCode, Method, Scheme}; 5 Method::Get, in main()
|
| H A D | p2_http_outbound_request_invalid_dnsname.rs | 1 use test_programs::wasi::http::types::{ErrorCode, Method, Scheme}; 5 Method::Get, in main()
|
| H A D | p2_api_proxy.rs | 3 Headers, IncomingRequest, Method, OutgoingBody, OutgoingResponse, ResponseOutparam, 19 (Method::Get, Some("/early_drop")) => { in handle() 33 (Method::Get, Some(p)) if p.starts_with("/modify_fields/") => { in handle() 38 (Method::Get, Some(p)) if p.starts_with("/new_fields/") => { in handle()
|
| H A D | p2_http_outbound_request_invalid_version.rs | 1 use test_programs::wasi::http::types::{ErrorCode, Method, Scheme}; 6 Method::Connect, in main()
|
| H A D | p3_http_outbound_request_response_build.rs | 1 use test_programs::p3::wasi::http::types::{Fields, Headers, Method, Request, Response, Scheme}; 21 request.set_method(&Method::Get).expect("setting method"); in run() 50 req.set_method(&Method::Other("invalid method".to_string())) in run()
|
| H A D | p2_http_outbound_request_missing_path_and_query.rs | 2 use test_programs::wasi::http::types::{Fields, Method, Scheme}; 7 req.set_method(&Method::Get).unwrap(); in main()
|
| H A D | p3_http_outbound_request_invalid_port.rs | 1 use test_programs::p3::wasi::http::types::{Method, Scheme}; 10 Method::Get, in run()
|
| H A D | p3_http_outbound_request_unknown_method.rs | 1 use test_programs::p3::wasi::http::types::{Method, Scheme}; 10 Method::Other("bad\nmethod".to_owned()), in run()
|
| H A D | p3_http_outbound_request_unsupported_scheme.rs | 1 use test_programs::p3::wasi::http::types::{ErrorCode, Method, Scheme}; 10 Method::Get, in run()
|
| H A D | p3_http_outbound_request_invalid_dnsname.rs | 1 use test_programs::p3::wasi::http::types::{ErrorCode, Method, Scheme}; 10 Method::Get, in run()
|
| H A D | p2_http_outbound_request_post.rs | 2 use test_programs::wasi::http::types::{Method, Scheme}; 7 Method::Post, in main()
|
| H A D | p2_http_outbound_request_put.rs | 2 use test_programs::wasi::http::types::{Method, Scheme}; 7 Method::Put, in main()
|
| H A D | p2_http_outbound_request_get.rs | 2 use test_programs::wasi::http::types::{Method, Scheme}; 7 Method::Get, in main()
|
| H A D | p2_http_outbound_request_timeout.rs | 4 use test_programs::wasi::http::types::{ErrorCode, Method, Scheme}; 12 Method::Get, in main()
|
| H A D | p3_http_outbound_request_invalid_version.rs | 1 use test_programs::p3::wasi::http::types::{ErrorCode, Method, Scheme}; 14 Method::Connect, in run()
|
| H A D | p2_http_outbound_request_large_post.rs | 3 use test_programs::wasi::http::types::{Method, Scheme}; 15 Method::Post, in main()
|
| H A D | p3_http_outbound_request_missing_path_and_query.rs | 2 use test_programs::p3::wasi::http::types::{Fields, Method, Request, Scheme}; 14 req.set_method(&Method::Get).unwrap(); in run()
|
| H A D | p3_http_outbound_request_timeout.rs | 4 use test_programs::p3::wasi::http::types::{ErrorCode, Method, Scheme}; 17 Method::Get, in run()
|
| H A D | p3_http_outbound_request_get.rs | 2 use test_programs::p3::wasi::http::types::{Method, Scheme}; 15 Method::Get, in run()
|
| /wasmtime-44.0.1/crates/wasi-http/tests/all/ |
| H A D | p2.rs | 6 use hyper::{Method, StatusCode, body::Bytes, server::conn::http1, service::service_fn}; 242 .method(http::Method::GET); in wasi_http_proxy_tests() 294 if let (Method::GET, Some(body)) = (request.method, bodies.get(request.uri.path())) { in do_wasi_http_hash_all() 370 .method(http::Method::GET) in do_wasi_http_hash_all() 420 .method(http::Method::GET) in wasi_http_hash_all_with_reject() 477 if let (&Method::POST, "/echo") = in wasi_http_double_echo() 533 .method(http::Method::POST) in do_wasi_http_echo() 577 .method(http::Method::GET) in wasi_http_without_port() 602 .method(http::Method::GET); in wasi_http_no_trap_on_early_drop() 629 let mut builder = hyper::Request::builder().uri(uri).method(http::Method::GET); in wasi_http_fields_limit_incoming_request()
|