Skip to content

Commit

Permalink
feat:remove todo
Browse files Browse the repository at this point in the history
  • Loading branch information
ltpp-universe committed Dec 14, 2024
1 parent d517579 commit 4eb0a81
Show file tree
Hide file tree
Showing 74 changed files with 0 additions and 74 deletions.
1 change: 0 additions & 1 deletion src/body/impl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use super::r#type::Body;
use serde::{Serialize, Serializer};
use std::fmt::{self, Display};
Expand Down
1 change: 0 additions & 1 deletion src/body/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// TODO:
pub mod r#impl;
pub mod r#type;
1 change: 0 additions & 1 deletion src/body/type.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use std::collections::HashMap;

/// Represents the body of an HTTP request as a JSON object, stored as a `HashMap`
Expand Down
1 change: 0 additions & 1 deletion src/cfg.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use crate::*;
use color_output::*;
use std_macro_extensions::*;
Expand Down
1 change: 0 additions & 1 deletion src/compress/brotli/decode.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use brotli::Decompressor;
use std::io::Read;

Expand Down
1 change: 0 additions & 1 deletion src/compress/brotli/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// TODO:
pub mod decode;
1 change: 0 additions & 1 deletion src/compress/constant.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 0 additions & 1 deletion src/compress/deflate/decode.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use flate2::read::DeflateDecoder;
use std::io::{BufReader, Read};

Expand Down
1 change: 0 additions & 1 deletion src/compress/deflate/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// TODO:
pub mod decode;
1 change: 0 additions & 1 deletion src/compress/gzip/decode.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use flate2::read::GzDecoder;
use std::io::BufReader;
use std::io::Read;
Expand Down
1 change: 0 additions & 1 deletion src/compress/gzip/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// TODO:
pub mod decode;
1 change: 0 additions & 1 deletion src/compress/impl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use std::str::FromStr;

use super::{
Expand Down
1 change: 0 additions & 1 deletion src/compress/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
pub mod brotli;
pub mod constant;
pub mod deflate;
Expand Down
1 change: 0 additions & 1 deletion src/compress/type.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
#[derive(Debug, PartialEq, Eq)]
pub enum Compress {
Gzip,
Expand Down
1 change: 0 additions & 1 deletion src/constant/common.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
/// The name of the application.
///
/// This constant represents the name of the application used for
Expand Down
1 change: 0 additions & 1 deletion src/constant/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// TODO:
pub mod common;
pub mod request;
1 change: 0 additions & 1 deletion src/constant/request.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 0 additions & 1 deletion src/content_type/impl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use super::r#type::ContentType;
use crate::request::constant::{
APPLICATION_JSON, APPLICATION_XML, FORM_URLENCODED, TEXT_HTML, TEXT_PLAIN,
Expand Down
1 change: 0 additions & 1 deletion src/content_type/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// TODO:
pub mod r#impl;
pub mod r#type;
1 change: 0 additions & 1 deletion src/content_type/type.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down
1 change: 0 additions & 1 deletion src/global_trait/impl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use super::r#trait::ReadWrite;

/// Provides a blanket implementation for the `ReadWrite` trait.
Expand Down
1 change: 0 additions & 1 deletion src/global_trait/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// TODO:
pub mod r#impl;
pub mod r#trait;
1 change: 0 additions & 1 deletion src/global_trait/trait.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion src/http_url/impl.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/http_url/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// TODO:
pub mod r#impl;
pub mod r#type;
1 change: 0 additions & 1 deletion src/http_url/type.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use crate::protocol::r#type::Protocol;

/// A struct representing a parsed URL with various components.
Expand Down
1 change: 0 additions & 1 deletion src/http_version/impl.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
1 change: 0 additions & 1 deletion src/http_version/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// TODO:
pub mod r#impl;
pub mod r#type;
1 change: 0 additions & 1 deletion src/http_version/type.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
pub(crate) mod body;
#[cfg(test)]
mod cfg;
Expand Down
1 change: 0 additions & 1 deletion src/methods/constant.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// TODO:
pub static GET: &str = "GET";
pub static POST: &str = "POST";
1 change: 0 additions & 1 deletion src/methods/impl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use super::r#type::Methods;
use crate::methods::constant::{GET, POST};
use std::fmt::{self, Display};
Expand Down
1 change: 0 additions & 1 deletion src/methods/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
pub mod constant;
pub mod r#impl;
pub mod r#type;
1 change: 0 additions & 1 deletion src/methods/type.rs
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
1 change: 0 additions & 1 deletion src/protocol/impl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use super::r#type::Protocol;
use crate::request::constant::{HTTP, HTTPS};
use std::{
Expand Down
1 change: 0 additions & 1 deletion src/protocol/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// TODO:
pub mod r#impl;
pub mod r#type;
1 change: 0 additions & 1 deletion src/protocol/type.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
/// Defines the `Protocol` enum, representing HTTP-related protocols.
///
/// The `Protocol` enum includes:
Expand Down
1 change: 0 additions & 1 deletion src/request/config/impl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use super::r#type::Config;
use crate::{
constant::request::DEFAULT_TIMEOUT, http_url::r#type::HttpUrl,
Expand Down
1 change: 0 additions & 1 deletion src/request/config/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// TODO:
pub mod r#impl;
pub mod r#type;
1 change: 0 additions & 1 deletion src/request/config/type.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use crate::{http_url::r#type::HttpUrl, http_version::r#type::HttpVersion};

/// Configuration for HTTP requests.
Expand Down
1 change: 0 additions & 1 deletion src/request/constant.rs
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
1 change: 0 additions & 1 deletion src/request/error/impl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use super::r#type::Error;
use std::{
error::Error as StdError,
Expand Down
1 change: 0 additions & 1 deletion src/request/error/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// TODO:
pub mod r#impl;
pub mod r#type;
1 change: 0 additions & 1 deletion src/request/error/type.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 0 additions & 1 deletion src/request/header/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// TODO:
pub mod r#type;
1 change: 0 additions & 1 deletion src/request/header/type.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use std::collections::HashMap;

/// A type alias for a `HashMap<String, String>`, representing the headers of an HTTP request or response.
Expand Down
1 change: 0 additions & 1 deletion src/request/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
pub mod config;
pub mod constant;
pub mod error;
Expand Down
1 change: 0 additions & 1 deletion src/request/request/impl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use super::r#type::HttpRequest;
use crate::{
body::r#type::Body,
Expand Down
1 change: 0 additions & 1 deletion src/request/request/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// TODO:
pub mod r#impl;
pub mod r#type;
1 change: 0 additions & 1 deletion src/request/request/type.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use crate::{
body::r#type::Body,
methods::r#type::Methods,
Expand Down
1 change: 0 additions & 1 deletion src/request/request_builder/impl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use super::r#type::RequestBuilder;
use crate::{
body::r#type::{Body, BodyBinary, BodyJson, BodyText},
Expand Down
1 change: 0 additions & 1 deletion src/request/request_builder/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// TODO:
pub mod r#impl;
pub mod r#type;
1 change: 0 additions & 1 deletion src/request/request_builder/type.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use crate::request::request::r#type::HttpRequest;

/// Builder pattern for constructing `Request` instances.
Expand Down
1 change: 0 additions & 1 deletion src/request/tmp/impl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use super::r#type::Tmp;
use std::collections::HashSet;

Expand Down
1 change: 0 additions & 1 deletion src/request/tmp/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// TODO:
pub mod r#impl;
pub mod r#type;
1 change: 0 additions & 1 deletion src/request/tmp/type.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use std::collections::HashSet;

#[derive(Debug, Clone, PartialEq, Eq)]
Expand Down
1 change: 0 additions & 1 deletion src/request/trait.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
/// Trait representing an HTTP request.
///
/// Provides a method for sending an HTTP request and obtaining the result.
Expand Down
1 change: 0 additions & 1 deletion src/request/type.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use super::r#trait::Request;
use crate::request::error::r#type::Error;
use crate::response::r#type::BoxHttpResponse;
Expand Down
1 change: 0 additions & 1 deletion src/response/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
pub mod response_binary;
pub mod response_header;
pub mod response_text;
Expand Down
1 change: 0 additions & 1 deletion src/response/response_binary/impl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use super::r#type::HttpResponseBinary;
use crate::{
compress::r#type::Compress,
Expand Down
1 change: 0 additions & 1 deletion src/response/response_binary/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// TODO:
pub mod r#impl;
pub mod r#type;
1 change: 0 additions & 1 deletion src/response/response_binary/type.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use std::collections::HashMap;

/// A struct representing an HTTP response.
Expand Down
1 change: 0 additions & 1 deletion src/response/response_header/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// TODO:
pub mod r#type;
1 change: 0 additions & 1 deletion src/response/response_header/type.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use std::collections::HashMap;

/// A type alias for a `HashMap<String, String>`, representing the headers of an HTTP request or response.
Expand Down
1 change: 0 additions & 1 deletion src/response/response_text/impl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use super::r#type::HttpResponseText;
use crate::{
compress::r#type::Compress,
Expand Down
1 change: 0 additions & 1 deletion src/response/response_text/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// TODO:
pub mod r#impl;
pub mod r#type;
1 change: 0 additions & 1 deletion src/response/response_text/type.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use std::collections::HashMap;

/// A struct representing an HTTP response.
Expand Down
1 change: 0 additions & 1 deletion src/response/trait.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
/// A trait representing common behaviors for HTTP response types.
///
/// This trait provides methods for transforming an HTTP response into
Expand Down
1 change: 0 additions & 1 deletion src/response/type.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use super::{
r#trait::Response, response_binary::r#type::HttpResponseBinary,
response_text::r#type::HttpResponseText,
Expand Down
1 change: 0 additions & 1 deletion src/status_code/impl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO:
use super::r#type::StatusCode;
use std::{
fmt::{self, Display},
Expand Down
1 change: 0 additions & 1 deletion src/status_code/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// TODO:
pub mod r#impl;
pub mod r#type;
1 change: 0 additions & 1 deletion src/status_code/type.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// TODO:
pub mod r#vec;
1 change: 0 additions & 1 deletion src/utils/vec.rs
Original file line number Diff line number Diff line change
@@ -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).
Expand Down

0 comments on commit 4eb0a81

Please sign in to comment.