Expand description
§Spacegate kernel crate.
This crate provides the core functionality of spacegate.
Re-exports§
pub use backend_service::ArcHyperService;
pub use body::SgBody;
pub use extractor::Extract;
Modules§
- backend_
service - https services, ws services, and static file services.
- body
- a boxed body
- extension
- extensions for request and response
- extractor
- extractors for request
- helper_
layers - helper layers
- injector
- injectors for reqeust
- listener
- tcp listener
- service
- gateway service
- utils
- util functions and structs
Structs§
- BoxLayer
- A boxed
Layer
that can be used as a plugin layer in gateway. - Cancellation
Token - A token which can be used to signal a cancellation request to one or more tasks.
Traits§
- Layer
- Decorates a
Service
, transforming either the request or the response. - SgRequest
Ext - Provides extension methods for
Request
. - SgResponse
Ext - Provides extension methods for
Response
.
Type Aliases§
- BoxError
- A boxed error.
- BoxResult
- SgRequest
- Alias for a request with a boxed body.
- SgResponse
- Alias for a response with a boxed body.