| /commonlibrary/rust/ylong_http/ylong_http/src/request/ |
| D | method.rs | 14 //! HTTP [`Method`]. 16 //! The request method token is the primary source of request semantics; 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); struct 46 impl Method { implementation [all …]
|
| D | mod.rs | 27 //! use ylong_http::request::method::Method; 33 //! .method("GET") 41 //! assert_eq!(request.method(), &Method::GET); 55 pub mod method; module 60 use method::Method; 98 /// Creates a `RequestBuilder` for the given `Uri` with method set to `GET`. 112 RequestBuilder::new().method(Method::GET).url(uri) in get() 115 /// Creates a `RequestBuilder` for the given `Uri` with method set to 130 RequestBuilder::new().method(Method::HEAD).url(uri) in head() 133 /// Creates a `RequestBuilder` for the given `Uri` with method set to [all …]
|
| /commonlibrary/rust/ylong_http/ylong_http_client/tests/common/ |
| D | sync_utils.rs | 22 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: $method, [all …]
|
| D | async_utils.rs | 23 Method: $method: expr, 44 Method: $method, 85 Method: $method, 112 Method: $method: expr, 133 Method: $method, 173 Method: $method, 207 Method: $method: expr, 238 Method: $method, 265 Method: $method: expr, 292 Method: $method, [all …]
|
| D | mod.rs | 266 Method: $method: expr, 276 .method($method) 290 Method: $method: expr, 300 .method($method) 315 Method: $method: expr, 331 match request.method().as_str() { 332 …// TODO If there are requests with the same Method, an error will be reported for creating two ide… 334 $method => { 335 … assert_eq!($method, request.method().as_str(), "Assert request method failed"); 369 _ => {panic!("Unrecognized METHOD !");}, [all …]
|
| /commonlibrary/ets_utils/ |
| D | README.en.md | 34 │ ├── toString() # toString method 35 │ └── toJSON() # toJSON method 41 │ ├── append(name, value) # append method 42 │ ├── delete(name) # delete method 43 │ ├── entries() # entries method 44 │ ├── forEach(fn[, thisArg]) # forEach method 45 │ ├── get(name) # get method 46 │ ├── getAll(name) # getAll method 47 │ ├── has(name) # has method 48 │ ├── keys() # keys method [all …]
|
| /commonlibrary/rust/ylong_http/ylong_http/src/ |
| D | pseudo.rs | 16 //! to convey the target URI, request method, and status code of the response. 24 //! assert_eq!(pseudo.method(), Some("GET")); 38 method: Option<String>, field 50 method: None, in new() 59 && self.method.is_none() in is_empty() 85 /// Check if it contains `Method`. 87 self.method.is_some() in contains_method() 90 /// Get the `&str` value of `Method`. 91 pub fn method(&self) -> Option<&str> { in method() method 92 self.method.as_deref() in method() [all …]
|
| /commonlibrary/rust/ylong_http/ylong_http_client/tests/tcp_server/ |
| D | sync_utils.rs | 20 Method: $method: expr, 49 Method: $method, 73 Method: $method, 105 Method: $method: expr, 131 Method: $method, 160 Method: $method: expr, 180 Method: $method,
|
| D | async_utils.rs | 20 Method: $method: expr, 51 Method: $method, 77 Method: $method, 110 Method: $method: expr, 137 Method: $method, 167 Method: $method: expr, 188 Method: $method,
|
| D | mod.rs | 42 Method: $method: expr, 96 … format!("{} http://{}{} {}{}", $method, addr.to_string().as_str(), $path, $req_version, crlf) 98 format!("{} {} {}{}", $method, $path, $req_version, crlf) 156 Method: $method: expr, 197 let request_line = format!("{} {} {}{}", $method, $path, "HTTP/1.1", crlf); 258 Method: $method: expr, 268 .method($method) 282 Method: $method: expr, 293 .method($method)
|
| /commonlibrary/rust/ylong_http/ylong_http_client/tests/ |
| D | sdv_async_https_c_ssl.rs | 42 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() 154 Body: "METHOD GET!", in sdv_client_send_request_repeatedly() 157 Method: "POST", in sdv_client_send_request_repeatedly() 166 Body: "METHOD POST!", in sdv_client_send_request_repeatedly() 184 Method: "GET", in sdv_client_making_multiple_connections() [all …]
|
| D | sdv_async_http.rs | 40 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() 151 Body: "METHOD GET!", in sdv_client_send_request_repeatedly() 154 Method: "POST", in sdv_client_send_request_repeatedly() 163 Body: "METHOD POST!", in sdv_client_send_request_repeatedly() 184 Method: "GET", in sdv_client_making_multiple_connections() [all …]
|
| D | sdv_async_http_on_tcp.rs | 38 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() 147 Body: "METHOD GET!", in sdv_client_send_request_repeatedly() 150 Method: "POST", in sdv_client_send_request_repeatedly() 160 Body: "METHOD POST!", in sdv_client_send_request_repeatedly() 179 Method: "GET", in sdv_client_making_multiple_connections() [all …]
|
| D | sdv_sync_http_on_tcp.rs | 38 Method: "PUT", in sdv_synchronized_client_send_request_to_tcp() 66 Method: "GET", in sdv_synchronized_client_send_request_repeatedly_to_tcp() 75 Body: "METHOD GET!", in sdv_synchronized_client_send_request_repeatedly_to_tcp() 78 Method: "POST", in sdv_synchronized_client_send_request_repeatedly_to_tcp() 87 Body: "METHOD POST!", in sdv_synchronized_client_send_request_repeatedly_to_tcp() 106 Method: "GET", in sdv_client_making_multiple_connections() 115 Body: "METHOD GET!", in sdv_client_making_multiple_connections()
|
| D | sdv_sync_https_c_ssl.rs | 42 Method: "PUT", in sdv_synchronized_client_send_request() 67 Method: "GET", in sdv_synchronized_client_send_request_repeatedly() 76 Body: "METHOD GET!", in sdv_synchronized_client_send_request_repeatedly() 79 Method: "POST", in sdv_synchronized_client_send_request_repeatedly() 88 Body: "METHOD POST!", in sdv_synchronized_client_send_request_repeatedly()
|
| D | sdv_sync_http.rs | 41 Method: "PUT", in sdv_synchronized_client_send_request() 70 Method: "GET", in sdv_synchronized_client_send_request_repeatedly() 79 Body: "METHOD GET!", in sdv_synchronized_client_send_request_repeatedly() 82 Method: "POST", in sdv_synchronized_client_send_request_repeatedly() 91 Body: "METHOD POST!", in sdv_synchronized_client_send_request_repeatedly()
|
| D | sdv_async_https_pinning.rs | 47 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_root_pinning() 279 Method: "GET", in sdv_client_public_key_root_pinning() 331 Method: "GET", in sdv_client_public_key_root_pinning() 382 Method: "GET", in sdv_client_public_key_root_pinning() 430 .method("GET") in sdv_client_public_key_root_pinning() 468 Method: "GET", in sdv_client_public_key_pinning_error() [all …]
|
| D | sdv_async_http_proxy.rs | 43 Method: "GET", in sdv_async_client_send_request() 54 Body: "METHOD GET!", in sdv_async_client_send_request() 74 Method: "GET", in sdv_async_client_send_request() 126 "METHOD GET!".as_bytes(), in sdv_async_client_send_request()
|
| /commonlibrary/rust/ylong_http/ylong_http_client/src/util/ |
| D | normalizer.rs | 14 use ylong_http::request::method::Method; 33 if Version::HTTP1_0 == *self.part.version() && Method::CONNECT == *self.part.method() { in format() 36 "Unknown METHOD in HTTP/1.0", in format() 116 req_method: &'a Method, 121 pub(crate) fn new(req_method: &'a Method, part: &'a ResponsePart) -> Self { in new() argument 133 if (self.req_method == &Method::CONNECT && self.part.status.is_successful()) in parse() 134 || self.req_method == &Method::HEAD in parse() 212 use ylong_http::request::method::Method; 275 let method = Method::GET; in ut_body_length_parser() localVariable 276 let body_len_parser = BodyLengthParser::new(&method, &result.0); in ut_body_length_parser() [all …]
|
| D | redirect.rs | 14 use ylong_http::request::method::Method; 52 let method = request.method_mut(); in redirect() localVariable 53 match *method { in redirect() 54 Method::GET | Method::HEAD => {} in redirect() 55 _ => *method = Method::GET, in redirect()
|
| /commonlibrary/rust/ylong_http/ylong_http/src/h1/request/ |
| D | encoder.rs | 26 //! .method("GET") 67 use crate::request::method::Method; 74 /// This encoder supports you to use the encode method multiple times to output 84 /// .method("GET") 134 // "Method" phase of encoding request-message. 135 Method, enumerator 136 // "MethodSp" phase of encoding whitespace after method. 174 /// .method("GET") 186 encode_status: EncodeState::Method, in new() 187 method_part: EncodeMethod::new(part.method), in new() [all …]
|
| /commonlibrary/c_utils/base/include/ |
| D | nocopyable.h | 22 * @brief Disables the copy and move construct/assignment method. 29 * @brief Disables the copy construct/assignment method. 36 * @brief Disables the move construct/assignment method.
|
| /commonlibrary/rust/ylong_http/ylong_http/src/h3/qpack/ |
| D | table.rs | 342 15..=21 => Some(NameField::Method), in field_name() 380 "access-control-request-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() 602 NameField::Other(String::from("access-control-request-method")), in field() [all …]
|
| /commonlibrary/rust/ylong_runtime/ylong_runtime/src/builder/ |
| D | multi_thread_builder.rs | 61 /// If the global runtime is already running or this method has been called 85 /// If a worker number has already been set for a qos, calling the method 130 /// This method does nothing now under ffrt feature. 138 /// This method does nothing now under ffrt feature. 146 /// This method does nothing now under ffrt feature. 157 /// This method does nothing now under ffrt feature. 168 /// This method does nothing now under ffrt feature. 179 /// This method does nothing now under ffrt feature. 188 /// This method does nothing now under ffrt feature. 195 /// If a stack size has already been set for a qos, calling the method
|
| /commonlibrary/rust/ylong_runtime/ylong_runtime/src/io/ |
| D | async_seek.rs | 32 /// If succeeds, this method will return `Poll::Ready(Ok(n))` where `n` 81 /// the AsyncSeek trait. Provides std-like `seek` method. 82 /// `Seek` method in this trait returns a future object. Awaits on the future 92 /// this method returns the new position from the start of the stream. 109 /// This is a convenience method, equivalent to seek(SeekFrom::Start(0)). 147 /// This is a convenience method, equivalent to
|