Home
last modified time | relevance | path

Searched refs:Method (Results 1 - 25 of 35) sorted by relevance

12

/commonlibrary/rust/ylong_http/ylong_http/src/request/
H A Dmethod.rs14 //! HTTP [`Method`].
20 //! [`Method`]: https://httpwg.org/specs/rfc9110.html#methods
25 //! use ylong_http::request::method::Method;
27 //! assert_eq!(Method::GET.as_str(), "GET");
34 /// HTTP `Method` implementation.
39 /// use ylong_http::request::method::Method;
41 /// assert_eq!(Method::GET.as_str(), "GET");
44 pub struct Method(Inner); structure names
46 impl Method { impls
104 /// Tries converting &[u8] to `Method`
[all...]
H A Dmod.rs27 //! use ylong_http::request::method::Method;
41 //! assert_eq!(request.method(), &Method::GET);
60 use method::Method;
112 RequestBuilder::new().method(Method::GET).url(uri) in get()
130 RequestBuilder::new().method(Method::HEAD).url(uri) in head()
148 RequestBuilder::new().method(Method::POST).url(uri) in post()
165 RequestBuilder::new().method(Method::PUT).url(uri) in put()
183 RequestBuilder::new().method(Method::DELETE).url(uri) in delete()
201 RequestBuilder::new().method(Method::CONNECT).url(uri) in connect()
219 RequestBuilder::new().method(Method in options()
[all...]
/commonlibrary/rust/ylong_http/ylong_http_client/tests/
H A Dsdv_async_http.rs40 Method: "GET", in sdv_async_client_send_request()
59 Method: "HEAD", in sdv_async_client_send_request()
77 Method: "POST", in sdv_async_client_send_request()
96 Method: "HEAD", in sdv_async_client_send_request()
113 Method: "PUT", in sdv_async_client_send_request()
142 Method: "GET", in sdv_client_send_request_repeatedly()
154 Method: "POST", in sdv_client_send_request_repeatedly()
184 Method: "GET", in sdv_client_making_multiple_connections()
H A Dsdv_async_http_on_tcp.rs38 Method: "GET", in sdv_async_client_send_request()
56 Method: "HEAD", in sdv_async_client_send_request()
73 Method: "POST", in sdv_async_client_send_request()
91 Method: "PUT", in sdv_async_client_send_request()
109 Method: "GET", in sdv_async_client_send_request()
137 Method: "GET", in sdv_client_send_request_repeatedly()
150 Method: "POST", in sdv_client_send_request_repeatedly()
179 Method: "GET", in sdv_client_making_multiple_connections()
H A Dsdv_async_https_c_ssl.rs42 Method: "GET", in sdv_async_client_send_request()
62 Method: "HEAD", in sdv_async_client_send_request()
81 Method: "POST", in sdv_async_client_send_request()
101 Method: "HEAD", in sdv_async_client_send_request()
119 Method: "PUT", in sdv_async_client_send_request()
145 Method: "GET", in sdv_client_send_request_repeatedly()
157 Method: "POST", in sdv_client_send_request_repeatedly()
184 Method: "GET", in sdv_client_making_multiple_connections()
H A Dsdv_sync_http_on_tcp.rs38 Method: "PUT", in sdv_synchronized_client_send_request_to_tcp()
66 Method: "GET", in sdv_synchronized_client_send_request_repeatedly_to_tcp()
78 Method: "POST", in sdv_synchronized_client_send_request_repeatedly_to_tcp()
106 Method: "GET", in sdv_client_making_multiple_connections()
H A Dsdv_sync_http.rs41 Method: "PUT", in sdv_synchronized_client_send_request()
70 Method: "GET", in sdv_synchronized_client_send_request_repeatedly()
82 Method: "POST", in sdv_synchronized_client_send_request_repeatedly()
H A Dsdv_sync_https_c_ssl.rs42 Method: "PUT", in sdv_synchronized_client_send_request()
67 Method: "GET", in sdv_synchronized_client_send_request_repeatedly()
79 Method: "POST", in sdv_synchronized_client_send_request_repeatedly()
H A Dsdv_async_http_client_error.rs70 Method: "GET", in sdv_err_start_connect_timeout()
105 Method: "GET", in sdv_err_req_timeout()
129 Method: "GET", in sdv_err_req_timeout()
182 Method: "GET", in sdv_err_redirect_wrong_location()
206 Method: "GET", in sdv_err_redirect_wrong_location()
247 Method: "GET", in sdv_err_response_with_wrong_body_length()
270 Method: "GET", in sdv_err_response_with_wrong_body_length()
H A Dsdv_async_https_pinning.rs47 Method: "GET", in sdv_client_public_key_pinning()
94 Method: "GET", in sdv_client_public_key_pinning()
143 Method: "GET", in sdv_client_public_key_pinning()
192 Method: "GET", in sdv_client_public_key_pinning()
228 Method: "GET", in sdv_client_public_key_pinning_error()
H A Dsdv_async_custom_dns_resolver.rs43 Method: "GET", in sdv_client_custom_dns_resolver()
68 Method: "GET", in sdv_client_custom_dns_resolver()
H A Dsdv_async_http_proxy.rs43 Method: "GET", in sdv_async_client_send_request()
74 Method: "GET", in sdv_async_client_send_request()
H A Dsdv_async_http_body_io.rs43 Method: "GET", in sdv_body_chunk_and_trailer()
70 Method: "GET", in sdv_body_chunk_and_trailer()
/commonlibrary/rust/ylong_http/ylong_http_client/tests/common/
H A Dsync_utils.rs22 Method: $method: expr,
43 Method: $method,
84 Method: $method,
110 Method: $method: expr,
131 Method: $method,
171 Method: $method,
205 Method: $method: expr,
234 Method: $method,
263 Method: $method: expr,
288 Method
[all...]
H A Dasync_utils.rs23 Method: $method: expr,
44 Method: $method,
85 Method: $method,
112 Method: $method: expr,
133 Method: $method,
173 Method: $method,
207 Method: $method: expr,
237 Method: $method,
264 Method: $method: expr,
291 Method
[all...]
/commonlibrary/rust/ylong_http/ylong_http_client/tests/tcp_server/
H A Dasync_utils.rs20 Method: $method: expr,
51 Method: $method,
77 Method: $method,
110 Method: $method: expr,
137 Method: $method,
167 Method: $method: expr,
188 Method: $method,
H A Dsync_utils.rs20 Method: $method: expr,
49 Method: $method,
73 Method: $method,
105 Method: $method: expr,
131 Method: $method,
160 Method: $method: expr,
180 Method: $method,
H A Dmod.rs42 Method: $method: expr,
156 Method: $method: expr,
258 Method: $method: expr,
282 Method: $method: expr,
/commonlibrary/rust/ylong_http/ylong_http/src/h3/qpack/
H A Dtable.rs342 15..=21 => Some(NameField::Method), in field_name()
410 15 => Some((NameField::Method, String::from("CONNECT"))), in field()
411 16 => Some((NameField::Method, String::from("DELETE"))), in field()
412 17 => Some((NameField::Method, String::from("GET"))), in field()
413 18 => Some((NameField::Method, String::from("HEAD"))), in field()
414 19 => Some((NameField::Method, String::from("OPTIONS"))), in field()
415 20 => Some((NameField::Method, String::from("POST"))), in field()
416 21 => Some((NameField::Method, String::from("PUT"))), in field()
650 (NameField::Method, "CONNECT") => TableIndex::Field(15), in index()
651 (NameField::Method, "DELET in index()
[all...]
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/
H A Dnormalizer.rs14 use ylong_http::request::method::Method;
33 if Version::HTTP1_0 == *self.part.version() && Method::CONNECT == *self.part.method() {
116 req_method: &'a Method,
121 pub(crate) fn new(req_method: &'a Method, part: &'a ResponsePart) -> Self {
133 if (self.req_method == &Method::CONNECT && self.part.status.is_successful())
134 || self.req_method == &Method::HEAD
212 use ylong_http::request::method::Method;
275 let method = Method::GET; in ut_body_length_parser()
283 let method = Method::GET; in ut_body_length_parser()
291 let method = Method in ut_body_length_parser()
[all...]
H A Dredirect.rs14 use ylong_http::request::method::Method;
54 Method::GET | Method::HEAD => {}
55 _ => *method = Method::GET,
/commonlibrary/rust/ylong_http/ylong_http/src/h2/hpack/
H A Dtable.rs244 2..=3 => Some(Header::Method), in header_name()
302 2 => Some((Header::Method, String::from("GET"))), in header()
303 3 => Some((Header::Method, String::from("POST"))), in header()
328 (Header::Method, "GET") => Some(TableIndex::Header(2)), in index()
329 (Header::Method, "POST") => Some(TableIndex::Header(3)), in index()
330 (Header::Method, _) => Some(TableIndex::HeaderName(2)), in index()
408 Method,
421 Header::Method => 7,
435 Header::Method => String::from(":method"),
515 table.update(Header::Method, Strin in ut_dynamic_table_update()
[all...]
H A Dencoder.rs116 Header::Method, in ut_hpack_encoder()
129 Header::Method, in ut_hpack_encoder()
145 Header::Method, in ut_hpack_encoder()
163 Header::Method, in ut_hpack_encoder()
/commonlibrary/rust/ylong_http/ylong_http/src/h3/qpack/format/
H A Dencoder.rs822 Method,
835 next_type: PartsIterDirection::Method,
839 /// Gets headers in the order of `Method`, `Status`, `Scheme`, `Path`,
844 PartsIterDirection::Method => match self.pseudo.take_method() { in next()
845 Some(value) => return Some((NameField::Method, value)), in next()
/commonlibrary/rust/ylong_http/ylong_http/src/h1/request/
H A Dencoder.rs67 use crate::request::method::Method;
134 // "Method" phase of encoding request-message.
135 Method,
186 encode_status: EncodeState::Method, in new()
258 EncodeState::Method => self.method_encode(&mut dst[count..]), in encode()
317 self.encode_status = EncodeState::Method; in method_encode()
417 inner: Method,
422 fn new(method: Method) -> Self { in new()
704 Method: $method:expr, in ut_request_encoder_encode_1()
749 Method in ut_request_encoder_encode_1()
[all...]

Completed in 11 milliseconds

12