From 4eb0a81af5e4ac20c926ef1f345162453a69804e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=A4=E9=9B=A8=E4=B8=9C?= Date: Sat, 14 Dec 2024 12:20:23 +0800 Subject: [PATCH] feat:remove todo --- src/body/impl.rs | 1 - src/body/mod.rs | 1 - src/body/type.rs | 1 - src/cfg.rs | 1 - src/compress/brotli/decode.rs | 1 - src/compress/brotli/mod.rs | 1 - src/compress/constant.rs | 1 - src/compress/deflate/decode.rs | 1 - src/compress/deflate/mod.rs | 1 - src/compress/gzip/decode.rs | 1 - src/compress/gzip/mod.rs | 1 - src/compress/impl.rs | 1 - src/compress/mod.rs | 1 - src/compress/type.rs | 1 - src/constant/common.rs | 1 - src/constant/mod.rs | 1 - src/constant/request.rs | 1 - src/content_type/impl.rs | 1 - src/content_type/mod.rs | 1 - src/content_type/type.rs | 1 - src/global_trait/impl.rs | 1 - src/global_trait/mod.rs | 1 - src/global_trait/trait.rs | 1 - src/http_url/impl.rs | 1 - src/http_url/mod.rs | 1 - src/http_url/type.rs | 1 - src/http_version/impl.rs | 1 - src/http_version/mod.rs | 1 - src/http_version/type.rs | 1 - src/lib.rs | 1 - src/methods/constant.rs | 1 - src/methods/impl.rs | 1 - src/methods/mod.rs | 1 - src/methods/type.rs | 1 - src/protocol/impl.rs | 1 - src/protocol/mod.rs | 1 - src/protocol/type.rs | 1 - src/request/config/impl.rs | 1 - src/request/config/mod.rs | 1 - src/request/config/type.rs | 1 - src/request/constant.rs | 1 - src/request/error/impl.rs | 1 - src/request/error/mod.rs | 1 - src/request/error/type.rs | 1 - src/request/header/mod.rs | 1 - src/request/header/type.rs | 1 - src/request/mod.rs | 1 - src/request/request/impl.rs | 1 - src/request/request/mod.rs | 1 - src/request/request/type.rs | 1 - src/request/request_builder/impl.rs | 1 - src/request/request_builder/mod.rs | 1 - src/request/request_builder/type.rs | 1 - src/request/tmp/impl.rs | 1 - src/request/tmp/mod.rs | 1 - src/request/tmp/type.rs | 1 - src/request/trait.rs | 1 - src/request/type.rs | 1 - src/response/mod.rs | 1 - src/response/response_binary/impl.rs | 1 - src/response/response_binary/mod.rs | 1 - src/response/response_binary/type.rs | 1 - src/response/response_header/mod.rs | 1 - src/response/response_header/type.rs | 1 - src/response/response_text/impl.rs | 1 - src/response/response_text/mod.rs | 1 - src/response/response_text/type.rs | 1 - src/response/trait.rs | 1 - src/response/type.rs | 1 - src/status_code/impl.rs | 1 - src/status_code/mod.rs | 1 - src/status_code/type.rs | 1 - src/utils/mod.rs | 1 - src/utils/vec.rs | 1 - 74 files changed, 74 deletions(-) diff --git a/src/body/impl.rs b/src/body/impl.rs index ac9da37..c11a4c8 100644 --- a/src/body/impl.rs +++ b/src/body/impl.rs @@ -1,4 +1,3 @@ -// TODO: use super::r#type::Body; use serde::{Serialize, Serializer}; use std::fmt::{self, Display}; diff --git a/src/body/mod.rs b/src/body/mod.rs index 0aa42df..6297e83 100644 --- a/src/body/mod.rs +++ b/src/body/mod.rs @@ -1,3 +1,2 @@ -// TODO: pub mod r#impl; pub mod r#type; diff --git a/src/body/type.rs b/src/body/type.rs index 9f30070..4953c15 100644 --- a/src/body/type.rs +++ b/src/body/type.rs @@ -1,4 +1,3 @@ -// TODO: use std::collections::HashMap; /// Represents the body of an HTTP request as a JSON object, stored as a `HashMap` diff --git a/src/cfg.rs b/src/cfg.rs index 4e16b9f..62390b8 100644 --- a/src/cfg.rs +++ b/src/cfg.rs @@ -1,4 +1,3 @@ -// TODO: use crate::*; use color_output::*; use std_macro_extensions::*; diff --git a/src/compress/brotli/decode.rs b/src/compress/brotli/decode.rs index ec6df46..0e753f4 100644 --- a/src/compress/brotli/decode.rs +++ b/src/compress/brotli/decode.rs @@ -1,4 +1,3 @@ -// TODO: use brotli::Decompressor; use std::io::Read; diff --git a/src/compress/brotli/mod.rs b/src/compress/brotli/mod.rs index eedf89d..5ac80bb 100644 --- a/src/compress/brotli/mod.rs +++ b/src/compress/brotli/mod.rs @@ -1,2 +1 @@ -// TODO: pub mod decode; diff --git a/src/compress/constant.rs b/src/compress/constant.rs index e9f9950..96b91a8 100644 --- a/src/compress/constant.rs +++ b/src/compress/constant.rs @@ -1,4 +1,3 @@ -// TODO: /// A constant representing the "gzip" compression algorithm. /// /// This constant holds the string value `"gzip"`, which is commonly used to refer to the GZIP compression format. diff --git a/src/compress/deflate/decode.rs b/src/compress/deflate/decode.rs index 0891421..bf36482 100644 --- a/src/compress/deflate/decode.rs +++ b/src/compress/deflate/decode.rs @@ -1,4 +1,3 @@ -// TODO: use flate2::read::DeflateDecoder; use std::io::{BufReader, Read}; diff --git a/src/compress/deflate/mod.rs b/src/compress/deflate/mod.rs index eedf89d..5ac80bb 100644 --- a/src/compress/deflate/mod.rs +++ b/src/compress/deflate/mod.rs @@ -1,2 +1 @@ -// TODO: pub mod decode; diff --git a/src/compress/gzip/decode.rs b/src/compress/gzip/decode.rs index 7b5c5ea..ea90213 100644 --- a/src/compress/gzip/decode.rs +++ b/src/compress/gzip/decode.rs @@ -1,4 +1,3 @@ -// TODO: use flate2::read::GzDecoder; use std::io::BufReader; use std::io::Read; diff --git a/src/compress/gzip/mod.rs b/src/compress/gzip/mod.rs index eedf89d..5ac80bb 100644 --- a/src/compress/gzip/mod.rs +++ b/src/compress/gzip/mod.rs @@ -1,2 +1 @@ -// TODO: pub mod decode; diff --git a/src/compress/impl.rs b/src/compress/impl.rs index 764259d..f54c171 100644 --- a/src/compress/impl.rs +++ b/src/compress/impl.rs @@ -1,4 +1,3 @@ -// TODO: use std::str::FromStr; use super::{ diff --git a/src/compress/mod.rs b/src/compress/mod.rs index 9637722..2a13138 100644 --- a/src/compress/mod.rs +++ b/src/compress/mod.rs @@ -1,4 +1,3 @@ -// TODO: pub mod brotli; pub mod constant; pub mod deflate; diff --git a/src/compress/type.rs b/src/compress/type.rs index 22a1037..ccf71dd 100644 --- a/src/compress/type.rs +++ b/src/compress/type.rs @@ -1,4 +1,3 @@ -// TODO: #[derive(Debug, PartialEq, Eq)] pub enum Compress { Gzip, diff --git a/src/constant/common.rs b/src/constant/common.rs index defac32..de2f3fd 100644 --- a/src/constant/common.rs +++ b/src/constant/common.rs @@ -1,4 +1,3 @@ -// TODO: /// The name of the application. /// /// This constant represents the name of the application used for diff --git a/src/constant/mod.rs b/src/constant/mod.rs index b77ea61..702ece4 100644 --- a/src/constant/mod.rs +++ b/src/constant/mod.rs @@ -1,3 +1,2 @@ -// TODO: pub mod common; pub mod request; diff --git a/src/constant/request.rs b/src/constant/request.rs index e61ef28..521d5dd 100644 --- a/src/constant/request.rs +++ b/src/constant/request.rs @@ -1,4 +1,3 @@ -// TODO: /// The default timeout value for HTTP requests, represented in milliseconds. /// This value is used when no specific timeout is provided, ensuring that requests /// have a reasonable maximum duration before timing out. diff --git a/src/content_type/impl.rs b/src/content_type/impl.rs index d800f7f..0fecb6c 100644 --- a/src/content_type/impl.rs +++ b/src/content_type/impl.rs @@ -1,4 +1,3 @@ -// TODO: use super::r#type::ContentType; use crate::request::constant::{ APPLICATION_JSON, APPLICATION_XML, FORM_URLENCODED, TEXT_HTML, TEXT_PLAIN, diff --git a/src/content_type/mod.rs b/src/content_type/mod.rs index 0aa42df..6297e83 100644 --- a/src/content_type/mod.rs +++ b/src/content_type/mod.rs @@ -1,3 +1,2 @@ -// TODO: pub mod r#impl; pub mod r#type; diff --git a/src/content_type/type.rs b/src/content_type/type.rs index a75971b..da1182c 100644 --- a/src/content_type/type.rs +++ b/src/content_type/type.rs @@ -1,4 +1,3 @@ -// TODO: /// Represents different types of HTTP content types, such as JSON, XML, plain text, HTML, /// form URL encoded, and an unknown type. #[derive(Debug, PartialEq, Eq)] diff --git a/src/global_trait/impl.rs b/src/global_trait/impl.rs index fedbdf0..18e1806 100644 --- a/src/global_trait/impl.rs +++ b/src/global_trait/impl.rs @@ -1,4 +1,3 @@ -// TODO: use super::r#trait::ReadWrite; /// Provides a blanket implementation for the `ReadWrite` trait. diff --git a/src/global_trait/mod.rs b/src/global_trait/mod.rs index 5d4769f..8cc9003 100644 --- a/src/global_trait/mod.rs +++ b/src/global_trait/mod.rs @@ -1,3 +1,2 @@ -// TODO: pub mod r#impl; pub mod r#trait; diff --git a/src/global_trait/trait.rs b/src/global_trait/trait.rs index 621f8cc..a915a28 100644 --- a/src/global_trait/trait.rs +++ b/src/global_trait/trait.rs @@ -1,4 +1,3 @@ -// TODO: /// A trait that combines `std::io::Read` and `std::io::Write`. /// /// The `ReadWrite` trait serves as a composite trait, requiring that any type implementing it diff --git a/src/http_url/impl.rs b/src/http_url/impl.rs index a11ca28..49f3431 100644 --- a/src/http_url/impl.rs +++ b/src/http_url/impl.rs @@ -1,4 +1,3 @@ -// TODO: use super::r#type::HttpUrl; use crate::{protocol::r#type::Protocol, request::error::r#type::Error}; use url::Url as UrlParser; diff --git a/src/http_url/mod.rs b/src/http_url/mod.rs index 0aa42df..6297e83 100644 --- a/src/http_url/mod.rs +++ b/src/http_url/mod.rs @@ -1,3 +1,2 @@ -// TODO: pub mod r#impl; pub mod r#type; diff --git a/src/http_url/type.rs b/src/http_url/type.rs index 1c5e60a..2dd04f2 100644 --- a/src/http_url/type.rs +++ b/src/http_url/type.rs @@ -1,4 +1,3 @@ -// TODO: use crate::protocol::r#type::Protocol; /// A struct representing a parsed URL with various components. diff --git a/src/http_version/impl.rs b/src/http_version/impl.rs index c00de4e..b1b309b 100644 --- a/src/http_version/impl.rs +++ b/src/http_version/impl.rs @@ -1,4 +1,3 @@ -// TODO: use super::r#type::HttpVersion; use crate::request::constant::{HTTP_VERSION_1_1, HTTP_VERSION_2, UNKNOWN_HTTP_VERSION}; use std::fmt::{self, Display}; diff --git a/src/http_version/mod.rs b/src/http_version/mod.rs index 0aa42df..6297e83 100644 --- a/src/http_version/mod.rs +++ b/src/http_version/mod.rs @@ -1,3 +1,2 @@ -// TODO: pub mod r#impl; pub mod r#type; diff --git a/src/http_version/type.rs b/src/http_version/type.rs index a922f3d..0c4fa1f 100644 --- a/src/http_version/type.rs +++ b/src/http_version/type.rs @@ -1,4 +1,3 @@ -// TODO: /// Represents the HTTP version used in the request or response. /// /// This enum is used to specify the HTTP version for HTTP requests and responses. diff --git a/src/lib.rs b/src/lib.rs index 49a54ee..00911d3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,3 @@ -// TODO: pub(crate) mod body; #[cfg(test)] mod cfg; diff --git a/src/methods/constant.rs b/src/methods/constant.rs index 54e8b3a..15c09c9 100644 --- a/src/methods/constant.rs +++ b/src/methods/constant.rs @@ -1,3 +1,2 @@ -// TODO: pub static GET: &str = "GET"; pub static POST: &str = "POST"; diff --git a/src/methods/impl.rs b/src/methods/impl.rs index 6fb9224..8927770 100644 --- a/src/methods/impl.rs +++ b/src/methods/impl.rs @@ -1,4 +1,3 @@ -// TODO: use super::r#type::Methods; use crate::methods::constant::{GET, POST}; use std::fmt::{self, Display}; diff --git a/src/methods/mod.rs b/src/methods/mod.rs index 1409693..5c7188f 100644 --- a/src/methods/mod.rs +++ b/src/methods/mod.rs @@ -1,4 +1,3 @@ -// TODO: pub mod constant; pub mod r#impl; pub mod r#type; diff --git a/src/methods/type.rs b/src/methods/type.rs index 3c561e2..2dbed0c 100644 --- a/src/methods/type.rs +++ b/src/methods/type.rs @@ -1,4 +1,3 @@ -// TODO: /// Defines the `Methods` enum, representing HTTP request methods. /// /// The `Methods` enum includes commonly used HTTP methods such as `GET` and `POST`. diff --git a/src/protocol/impl.rs b/src/protocol/impl.rs index 8e1c376..a8a0478 100644 --- a/src/protocol/impl.rs +++ b/src/protocol/impl.rs @@ -1,4 +1,3 @@ -// TODO: use super::r#type::Protocol; use crate::request::constant::{HTTP, HTTPS}; use std::{ diff --git a/src/protocol/mod.rs b/src/protocol/mod.rs index 0aa42df..6297e83 100644 --- a/src/protocol/mod.rs +++ b/src/protocol/mod.rs @@ -1,3 +1,2 @@ -// TODO: pub mod r#impl; pub mod r#type; diff --git a/src/protocol/type.rs b/src/protocol/type.rs index 116df5b..d70625d 100644 --- a/src/protocol/type.rs +++ b/src/protocol/type.rs @@ -1,4 +1,3 @@ -// TODO: /// Defines the `Protocol` enum, representing HTTP-related protocols. /// /// The `Protocol` enum includes: diff --git a/src/request/config/impl.rs b/src/request/config/impl.rs index c4285a1..c31f13b 100644 --- a/src/request/config/impl.rs +++ b/src/request/config/impl.rs @@ -1,4 +1,3 @@ -// TODO: use super::r#type::Config; use crate::{ constant::request::DEFAULT_TIMEOUT, http_url::r#type::HttpUrl, diff --git a/src/request/config/mod.rs b/src/request/config/mod.rs index 0aa42df..6297e83 100644 --- a/src/request/config/mod.rs +++ b/src/request/config/mod.rs @@ -1,3 +1,2 @@ -// TODO: pub mod r#impl; pub mod r#type; diff --git a/src/request/config/type.rs b/src/request/config/type.rs index 09c6322..4375f74 100644 --- a/src/request/config/type.rs +++ b/src/request/config/type.rs @@ -1,4 +1,3 @@ -// TODO: use crate::{http_url::r#type::HttpUrl, http_version::r#type::HttpVersion}; /// Configuration for HTTP requests. diff --git a/src/request/constant.rs b/src/request/constant.rs index 29881d0..ff3d460 100644 --- a/src/request/constant.rs +++ b/src/request/constant.rs @@ -1,4 +1,3 @@ -// TODO: /// A carriage return and newline character sequence (`\r\n`), used to separate lines in HTTP headers. pub static HTTP_BR: &str = "\r\n"; diff --git a/src/request/error/impl.rs b/src/request/error/impl.rs index f27b999..4f2984d 100644 --- a/src/request/error/impl.rs +++ b/src/request/error/impl.rs @@ -1,4 +1,3 @@ -// TODO: use super::r#type::Error; use std::{ error::Error as StdError, diff --git a/src/request/error/mod.rs b/src/request/error/mod.rs index 0aa42df..6297e83 100644 --- a/src/request/error/mod.rs +++ b/src/request/error/mod.rs @@ -1,3 +1,2 @@ -// TODO: pub mod r#impl; pub mod r#type; diff --git a/src/request/error/type.rs b/src/request/error/type.rs index e29addb..f3523d9 100644 --- a/src/request/error/type.rs +++ b/src/request/error/type.rs @@ -1,4 +1,3 @@ -// TODO: /// Represents different types of errors that can occur in the application. /// /// The `Error` enum defines various error types related to HTTP requests, network connections, and TLS operations. diff --git a/src/request/header/mod.rs b/src/request/header/mod.rs index af86e2a..6e146ba 100644 --- a/src/request/header/mod.rs +++ b/src/request/header/mod.rs @@ -1,2 +1 @@ -// TODO: pub mod r#type; diff --git a/src/request/header/type.rs b/src/request/header/type.rs index 50bff08..491b8cc 100644 --- a/src/request/header/type.rs +++ b/src/request/header/type.rs @@ -1,4 +1,3 @@ -// TODO: use std::collections::HashMap; /// A type alias for a `HashMap`, representing the headers of an HTTP request or response. diff --git a/src/request/mod.rs b/src/request/mod.rs index 138c321..eeb5cf9 100644 --- a/src/request/mod.rs +++ b/src/request/mod.rs @@ -1,4 +1,3 @@ -// TODO: pub mod config; pub mod constant; pub mod error; diff --git a/src/request/request/impl.rs b/src/request/request/impl.rs index 498fbdd..398e032 100644 --- a/src/request/request/impl.rs +++ b/src/request/request/impl.rs @@ -1,4 +1,3 @@ -// TODO: use super::r#type::HttpRequest; use crate::{ body::r#type::Body, diff --git a/src/request/request/mod.rs b/src/request/request/mod.rs index 0aa42df..6297e83 100644 --- a/src/request/request/mod.rs +++ b/src/request/request/mod.rs @@ -1,3 +1,2 @@ -// TODO: pub mod r#impl; pub mod r#type; diff --git a/src/request/request/type.rs b/src/request/request/type.rs index a2d5342..b3d4a48 100644 --- a/src/request/request/type.rs +++ b/src/request/request/type.rs @@ -1,4 +1,3 @@ -// TODO: use crate::{ body::r#type::Body, methods::r#type::Methods, diff --git a/src/request/request_builder/impl.rs b/src/request/request_builder/impl.rs index cd017a1..ca9d417 100644 --- a/src/request/request_builder/impl.rs +++ b/src/request/request_builder/impl.rs @@ -1,4 +1,3 @@ -// TODO: use super::r#type::RequestBuilder; use crate::{ body::r#type::{Body, BodyBinary, BodyJson, BodyText}, diff --git a/src/request/request_builder/mod.rs b/src/request/request_builder/mod.rs index 0aa42df..6297e83 100644 --- a/src/request/request_builder/mod.rs +++ b/src/request/request_builder/mod.rs @@ -1,3 +1,2 @@ -// TODO: pub mod r#impl; pub mod r#type; diff --git a/src/request/request_builder/type.rs b/src/request/request_builder/type.rs index 7fcaa7b..280692e 100644 --- a/src/request/request_builder/type.rs +++ b/src/request/request_builder/type.rs @@ -1,4 +1,3 @@ -// TODO: use crate::request::request::r#type::HttpRequest; /// Builder pattern for constructing `Request` instances. diff --git a/src/request/tmp/impl.rs b/src/request/tmp/impl.rs index b54b445..cf11ab3 100644 --- a/src/request/tmp/impl.rs +++ b/src/request/tmp/impl.rs @@ -1,4 +1,3 @@ -// TODO: use super::r#type::Tmp; use std::collections::HashSet; diff --git a/src/request/tmp/mod.rs b/src/request/tmp/mod.rs index 0aa42df..6297e83 100644 --- a/src/request/tmp/mod.rs +++ b/src/request/tmp/mod.rs @@ -1,3 +1,2 @@ -// TODO: pub mod r#impl; pub mod r#type; diff --git a/src/request/tmp/type.rs b/src/request/tmp/type.rs index 1233265..e498381 100644 --- a/src/request/tmp/type.rs +++ b/src/request/tmp/type.rs @@ -1,4 +1,3 @@ -// TODO: use std::collections::HashSet; #[derive(Debug, Clone, PartialEq, Eq)] diff --git a/src/request/trait.rs b/src/request/trait.rs index 3a4a069..bfafbb2 100644 --- a/src/request/trait.rs +++ b/src/request/trait.rs @@ -1,4 +1,3 @@ -// TODO: /// Trait representing an HTTP request. /// /// Provides a method for sending an HTTP request and obtaining the result. diff --git a/src/request/type.rs b/src/request/type.rs index e045be8..3a7dbc4 100644 --- a/src/request/type.rs +++ b/src/request/type.rs @@ -1,4 +1,3 @@ -// TODO: use super::r#trait::Request; use crate::request::error::r#type::Error; use crate::response::r#type::BoxHttpResponse; diff --git a/src/response/mod.rs b/src/response/mod.rs index 74ab09a..60ca578 100644 --- a/src/response/mod.rs +++ b/src/response/mod.rs @@ -1,4 +1,3 @@ -// TODO: pub mod response_binary; pub mod response_header; pub mod response_text; diff --git a/src/response/response_binary/impl.rs b/src/response/response_binary/impl.rs index dc3ead4..53f3bac 100644 --- a/src/response/response_binary/impl.rs +++ b/src/response/response_binary/impl.rs @@ -1,4 +1,3 @@ -// TODO: use super::r#type::HttpResponseBinary; use crate::{ compress::r#type::Compress, diff --git a/src/response/response_binary/mod.rs b/src/response/response_binary/mod.rs index 0aa42df..6297e83 100644 --- a/src/response/response_binary/mod.rs +++ b/src/response/response_binary/mod.rs @@ -1,3 +1,2 @@ -// TODO: pub mod r#impl; pub mod r#type; diff --git a/src/response/response_binary/type.rs b/src/response/response_binary/type.rs index a615d73..7857bcc 100644 --- a/src/response/response_binary/type.rs +++ b/src/response/response_binary/type.rs @@ -1,4 +1,3 @@ -// TODO: use std::collections::HashMap; /// A struct representing an HTTP response. diff --git a/src/response/response_header/mod.rs b/src/response/response_header/mod.rs index af86e2a..6e146ba 100644 --- a/src/response/response_header/mod.rs +++ b/src/response/response_header/mod.rs @@ -1,2 +1 @@ -// TODO: pub mod r#type; diff --git a/src/response/response_header/type.rs b/src/response/response_header/type.rs index eb6bc59..f84e9d2 100644 --- a/src/response/response_header/type.rs +++ b/src/response/response_header/type.rs @@ -1,4 +1,3 @@ -// TODO: use std::collections::HashMap; /// A type alias for a `HashMap`, representing the headers of an HTTP request or response. diff --git a/src/response/response_text/impl.rs b/src/response/response_text/impl.rs index 10a873f..9492641 100644 --- a/src/response/response_text/impl.rs +++ b/src/response/response_text/impl.rs @@ -1,4 +1,3 @@ -// TODO: use super::r#type::HttpResponseText; use crate::{ compress::r#type::Compress, diff --git a/src/response/response_text/mod.rs b/src/response/response_text/mod.rs index 0aa42df..6297e83 100644 --- a/src/response/response_text/mod.rs +++ b/src/response/response_text/mod.rs @@ -1,3 +1,2 @@ -// TODO: pub mod r#impl; pub mod r#type; diff --git a/src/response/response_text/type.rs b/src/response/response_text/type.rs index 4eb6920..e636397 100644 --- a/src/response/response_text/type.rs +++ b/src/response/response_text/type.rs @@ -1,4 +1,3 @@ -// TODO: use std::collections::HashMap; /// A struct representing an HTTP response. diff --git a/src/response/trait.rs b/src/response/trait.rs index 51c341c..45eef97 100644 --- a/src/response/trait.rs +++ b/src/response/trait.rs @@ -1,4 +1,3 @@ -// TODO: /// A trait representing common behaviors for HTTP response types. /// /// This trait provides methods for transforming an HTTP response into diff --git a/src/response/type.rs b/src/response/type.rs index 6d528d8..42e8913 100644 --- a/src/response/type.rs +++ b/src/response/type.rs @@ -1,4 +1,3 @@ -// TODO: use super::{ r#trait::Response, response_binary::r#type::HttpResponseBinary, response_text::r#type::HttpResponseText, diff --git a/src/status_code/impl.rs b/src/status_code/impl.rs index 13126b1..e1f091c 100644 --- a/src/status_code/impl.rs +++ b/src/status_code/impl.rs @@ -1,4 +1,3 @@ -// TODO: use super::r#type::StatusCode; use std::{ fmt::{self, Display}, diff --git a/src/status_code/mod.rs b/src/status_code/mod.rs index 0aa42df..6297e83 100644 --- a/src/status_code/mod.rs +++ b/src/status_code/mod.rs @@ -1,3 +1,2 @@ -// TODO: pub mod r#impl; pub mod r#type; diff --git a/src/status_code/type.rs b/src/status_code/type.rs index f7254ca..b32609b 100644 --- a/src/status_code/type.rs +++ b/src/status_code/type.rs @@ -1,4 +1,3 @@ -// TODO: /// Enumeration of HTTP status codes representing various HTTP response statuses /// /// This enum includes common HTTP status codes that cover successful requests, client errors, diff --git a/src/utils/mod.rs b/src/utils/mod.rs index d395b9b..a9def5c 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -1,2 +1 @@ -// TODO: pub mod r#vec; diff --git a/src/utils/vec.rs b/src/utils/vec.rs index f0f68c4..6d7f941 100644 --- a/src/utils/vec.rs +++ b/src/utils/vec.rs @@ -1,4 +1,3 @@ -// TODO: use crate::constant::common::{SPACE_U8, TAB_U8}; /// Splits a byte slice into parts based on whitespace characters (space or tab).