Re-exports§
Modules§
Macros§
- body_
param - The
body_parammacro 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_variablemacro extracts a path parameter from the URL. - query_
param - The
query_parammacro extracts a single query parameter from the URL. - query_
params - The
query_paramsmacro deserializes multiple query parameters into a struct. - redirect_
to - redirect_
to_ mcr - request_
body - The
request_bodymacro deserializes the entire request body into a Rust type. - request_
cookies - Macro for accessing cookies in
awpak-rsrequest handlers. - request_
headers - Extracts the request headers in an endpoint function.
- response_
cookies - Macro for modifying response cookies in
awpak-rsrequest handlers. - response_
headers - Provides access to response headers in an endpoint function.
- set_
status_ code - set_
status_ code_ mcr
Structs§
Enums§
- Error
- Middleware
Exec Order - Middleware
Response - 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§
Attribute Macros§
- awpak_
main - The
awpak_mainmacro defines the entry point for anawpak-rsweb application. - connect
- Defines an HTTP
CONNECTroute. - delete
- Defines an HTTP
DELETEroute. - get
- The
getmacro defines an HTTP GET endpoint for anawpak-rsweb application. - head
- Defines an HTTP
HEADroute. - middleware
- Defines a middleware function in
awpak-rs. - options
- Defines an HTTP
OPTIONSroute. - patch
- Defines an HTTP
PATCHroute. - post
- The
postmacro defines an HTTP POST endpoint for anawpak-rsweb application. - put
- Defines an HTTP
PUTroute. - trace
- Defines an HTTP
TRACEroute.
Derive Macros§
- From
Value - Derive macro for implementing
FromValue.