Crate awpak_rs

Crate awpak_rs 

Source

Re-exports§

pub use tokio;
pub use inventory;

Modules§

body
endpoint
from_async_str
from_value
io
server

Macros§

body_param
The body_param macro extracts a specific parameter from the request body.
context
Macro for accessing and modifying the request context in awpak-rs.
part_file
Macro for extracting a single file from a multipart request in awpak-rs.
part_files
Macro for extracting multiple files from a multipart request in awpak-rs.
path_variable
The path_variable macro extracts a path parameter from the URL.
query_param
The query_param macro extracts a single query parameter from the URL.
query_params
The query_params macro deserializes multiple query parameters into a struct.
redirect_to
redirect_to_mcr
request_body
The request_body macro deserializes the entire request body into a Rust type.
request_cookies
Macro for accessing cookies in awpak-rs request handlers.
request_headers
Extracts the request headers in an endpoint function.
response_cookies
Macro for modifying response cookies in awpak-rs request handlers.
response_headers
Provides access to response headers in an endpoint function.
set_status_code
set_status_code_mcr

Structs§

ContentTypeStrategy
Middleware
ResponseContentTypeStrategy

Enums§

Error
MiddlewareExecOrder
MiddlewareResponse
Represents the possible outcomes of a middleware execution.
Value
Represents any valid JSON value.

Functions§

initialize_middlewares
parse_body_param_value
parse_from_value
parse_path_variable
parse_query_param_value
parse_value
serialize_value

Type Aliases§

MiddlewareResponseType

Attribute Macros§

awpak_main
The awpak_main macro defines the entry point for an awpak-rs web application.
connect
Defines an HTTP CONNECT route.
delete
Defines an HTTP DELETE route.
get
The get macro defines an HTTP GET endpoint for an awpak-rs web application.
head
Defines an HTTP HEAD route.
middleware
Defines a middleware function in awpak-rs.
options
Defines an HTTP OPTIONS route.
patch
Defines an HTTP PATCH route.
post
The post macro defines an HTTP POST endpoint for an awpak-rs web application.
put
Defines an HTTP PUT route.
trace
Defines an HTTP TRACE route.

Derive Macros§

FromValue
Derive macro for implementing FromValue.