Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ categories = ["network-programming", "web-programming"]
exclude.workspace = true

[workspace.package]
version = "21.8.0"
version = "21.9.0"
readme = "README.md"
edition = "2024"
authors = ["root@ltpp.vip"]
Expand Down
4 changes: 0 additions & 4 deletions core/src/route/struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use super::*;
#[derive(Clone, Debug, DisplayDebug, Getter)]
pub struct RoutePattern(
/// The collection of segments that make up the route pattern.
#[get]
pub(super) RouteSegmentList,
);

Expand All @@ -24,19 +23,16 @@ pub struct RoutePattern(
pub struct RouteMatcher {
/// A hash map for storing and quickly retrieving handlers for static route.
/// These are route without any variable path segments.
#[get]
#[set(skip)]
#[debug(skip)]
pub(super) static_route: ServerHookMap,
/// A layered map of dynamic routes grouped by segment count.
/// Routes are organized by path segment count for efficient filtering during matching.
#[get]
#[set(skip)]
#[debug(skip)]
pub(super) dynamic_route: ServerHookPatternRoute,
/// A layered map of regex routes grouped by segment count.
/// Routes with tail regex patterns can match paths with more segments.
#[get]
#[set(skip)]
#[debug(skip)]
pub(super) regex_route: ServerHookPatternRoute,
Expand Down
7 changes: 0 additions & 7 deletions type/src/request/struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,24 @@ use super::*;
pub struct RequestConfig {
/// Buffer size for reading operations.
#[get(type(copy))]
#[set]
pub buffer_size: usize,
/// Maximum size for URL path in bytes.
#[get(type(copy))]
#[set]
pub max_path_size: usize,
/// Maximum number of headers allowed in a request.
#[get(type(copy))]
#[set]
pub max_header_count: usize,
/// Maximum size for a header key in bytes.
#[get(type(copy))]
#[set]
pub max_header_key_size: usize,
/// Maximum size for a header value in bytes.
#[get(type(copy))]
#[set]
pub max_header_value_size: usize,
/// Maximum size for request body in bytes.
#[get(type(copy))]
#[set]
pub max_body_size: usize,
/// Timeout for reading data in milliseconds.
#[get(type(copy))]
#[set]
pub read_timeout_ms: u64,
}

Expand Down
12 changes: 0 additions & 12 deletions type/src/task/struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,11 @@ use super::*;
#[derive(Clone, CustomDebug, Data, DisplayDebug)]
pub struct Task {
/// Pool of unbounded senders for distributing tasks to worker threads.
#[get(pub)]
#[get_mut(pub)]
#[set(pub)]
pub pool: Vec<UnboundedSender<AsyncTask>>,
/// Atomic counter for round-robin task distribution across workers.
#[get(pub)]
#[get_mut(pub)]
#[set(pub)]
pub counter: Arc<AtomicUsize>,
/// Flag indicating whether the task pool should shut down.
#[get(pub)]
#[get_mut(pub)]
#[set(pub)]
pub shutdown: Arc<AtomicBool>,
/// Notification handles for precise wake-up of specific workers.
#[get(pub)]
#[get_mut(pub)]
#[set(pub)]
pub notifies: Vec<Arc<Notify>>,
}
Loading