We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9925d61 commit cbb4297Copy full SHA for cbb4297
Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "http-request"
3
-version = "8.91.93"
+version = "8.91.94"
4
readme = "README.md"
5
edition = "2024"
6
authors = ["root@ltpp.vip"]
src/common/enum.rs
@@ -3,7 +3,7 @@ use crate::*;
/// Represents the body content of an HTTP request/response.
///
/// Can be text, JSON or binary data.
-#[derive(Debug, Clone, PartialEq, Eq)]
+#[derive(Clone, Debug, Eq, PartialEq)]
7
pub(crate) enum Body {
8
/// Text content body.
9
Text(BodyText),
src/request/config/struct.rs
/// Configuration for HTTP requests.
/// Contains settings like timeout, redirect handling, and proxy configuration.
pub(crate) struct Config {
/// Request timeout in milliseconds.
pub(crate) timeout: u64,
@@ -28,7 +28,7 @@ pub(crate) struct Config {
28
/// Proxy server configuration.
29
30
/// Contains proxy type, host/port, and optional authentication.
31
32
pub(crate) struct ProxyConfig {
33
/// Type of proxy (HTTP/HTTPS/SOCKS5).
34
pub(crate) proxy_type: ProxyType,
@@ -43,7 +43,7 @@ pub(crate) struct ProxyConfig {
43
}
44
45
/// Supported proxy types.
46
47
pub(crate) enum ProxyType {
48
/// HTTP proxy.
49
Http,
src/request/http_request/struct.rs
@@ -2,7 +2,7 @@ use crate::*;
/// Represents an HTTP request, encapsulating various components such as the method, URL, protocol,
/// headers, body, and additional metadata.
-#[derive(Debug, Clone)]
+#[derive(Clone, Debug)]
pub(crate) struct HttpRequest {
/// HTTP request methods.
pub(crate) methods: Arc<Method>,
src/request/request_builder/struct.rs
@@ -15,7 +15,7 @@ use crate::*;
15
/// This builder simplifies the creation of `HttpRequest` objects, ensuring thread-safety
16
/// and immutability of shared references, while providing a fluent API for constructing
17
/// HTTP requests with various configurations.
18
-#[derive(Debug, Clone, Default)]
+#[derive(Clone, Debug, Default)]
19
pub struct RequestBuilder {
20
pub(crate) http_request: HttpRequest,
21
pub(crate) builder: HttpRequest,
src/request/socket/config/struct.rs
use crate::*;
pub(crate) struct WebSocketConfig {
pub(crate) url_obj: HttpUrlComponents,
src/request/socket/message/enum.rs
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Clone, Debug, PartialEq)]
pub enum WebSocketMessage {
Text(String),
Binary(Vec<u8>),
src/request/socket/shared/struct.rs
@@ -1,15 +1,15 @@
pub(crate) struct SharedWebSocketBuilder;
pub struct WebSocketError {
pub(crate) kind: WebSocketErrorKind,
pub(crate) message: String,
10
11
12
13
pub enum WebSocketErrorKind {
14
Connection,
String,
src/request/socket/websocket_builder/struct.rs
pub struct WebSocketBuilder {
pub(crate) websocket: WebSocket,
pub(crate) builder: WebSocket,
src/request/tmp/struct.rs
pub struct Tmp {
pub visit_url: HashSet<String>,
pub root_cert: RootCertStore,
0 commit comments