Lines Matching refs:ErrorCode
1 use crate::p3::bindings::http::types::ErrorCode;
60 body: impl Into<UnsyncBoxBody<Bytes, ErrorCode>>, in new() argument
63 impl Future<Output = Result<(), ErrorCode>> + Send + 'static, in new()
96 impl Future<Output = Result<(), ErrorCode>> + Send + 'static, in from_http()
100 T::Error: Into<ErrorCode>, in from_http() argument
136 fut: impl Future<Output = Result<(), ErrorCode>> + Send + 'static, in into_http() argument
138 http::Request<UnsyncBoxBody<Bytes, ErrorCode>>, in into_http()
148 fut: impl Future<Output = Result<(), ErrorCode>> + Send + 'static, in into_http_with_getter() argument
151 http::Request<UnsyncBoxBody<Bytes, ErrorCode>>, in into_http_with_getter()
168 return Err(ErrorCode::InternalError(Some(format!("{err:#}"))).into()); in into_http_with_getter()
188 ErrorCode::HttpRequestBodySize, in into_http_with_getter()
202 body.with_content_length(limit, http_result_tx, ErrorCode::HttpRequestBodySize) in into_http_with_getter()
216 .map_err(|err| ErrorCode::InternalError(Some(err.to_string())))? in into_http_with_getter()
223 None => hooks.default_scheme().ok_or(ErrorCode::HttpProtocolError)?, in into_http_with_getter()
225 Some(..) => return Err(ErrorCode::HttpProtocolError.into()), in into_http_with_getter()
236 ErrorCode::HttpRequestUriInvalid in into_http_with_getter()
244 .map_err(|err| ErrorCode::InternalError(Some(err.to_string())))?; in into_http_with_getter()
263 mut req: http::Request<impl http_body::Body<Data = Bytes, Error = ErrorCode> + Send + 'static>, in default_send_request() argument
267 http::Response<impl http_body::Body<Data = Bytes, Error = ErrorCode>>, in default_send_request()
268 impl Future<Output = Result<(), ErrorCode>> + Send, in default_send_request()
270 ErrorCode, in default_send_request()
288 fn dns_error(rcode: String, info_code: u16) -> ErrorCode { in default_send_request() argument
289 ErrorCode::DnsError(crate::p3::bindings::http::types::DnsErrorPayload { in default_send_request()
296 let authority = uri.authority().ok_or(ErrorCode::HttpRequestUriInvalid)?; in default_send_request()
344 return Err(ErrorCode::ConnectionRefused); in default_send_request()
346 Err(..) => return Err(ErrorCode::ConnectionTimeout), in default_send_request()
369 ErrorCode::TlsProtocolError in default_send_request()
381 .map_err(|_| ErrorCode::ConnectionTimeout)? in default_send_request()
382 .map_err(ErrorCode::from_hyper_request_error)?; in default_send_request()
408 type Error = ErrorCode; in default_send_request()
417 Poll::Ready(Some(Err(ErrorCode::from_hyper_response_error(err)))) in default_send_request()
425 Poll::Ready(Some(Err(ErrorCode::ConnectionReadTimeout))) in default_send_request()
439 .map_err(|_| ErrorCode::ConnectionReadTimeout)? in default_send_request()
440 .map_err(ErrorCode::from_hyper_request_error)?; in default_send_request()
464 Err(err) => Poll::Ready(Err(ErrorCode::from_hyper_request_error(err))), in default_send_request()
474 conn.await.map_err(ErrorCode::from_hyper_response_error) in default_send_request()
580 Err(ErrorCode::InternalError(Some("uh oh".to_string()))) in test_request_into_http_uri_error()
585 ErrorCode::HttpRequestUriInvalid, in test_request_into_http_uri_error()
591 Poll::Ready(Err(ErrorCode::InternalError(Some(_)))) in test_request_into_http_uri_error()