@@ -12,6 +12,8 @@ pub type RequestPath = String;
1212pub type RequestQuerysKey = String ;
1313/// Value type used in the request query parameters.
1414pub type RequestQuerysValue = String ;
15+ /// Optional value for a query parameter.
16+ pub type OptionRequestQuerysValue = Option < RequestQuerysValue > ;
1517/// All query parameters parsed from the request URL.
1618pub type RequestQuerys = HashMapXxHash3_64 < RequestQuerysKey , RequestQuerysValue > ;
1719/// The raw binary body of the request.
@@ -22,6 +24,8 @@ pub type RequestBodyString = String;
2224pub type RequestHeadersKey = String ;
2325/// Value type used in the request headers.
2426pub type RequestHeadersValue = String ;
27+ /// Optional value for a header.
28+ pub type OptionRequestHeadersValue = Option < RequestHeadersValue > ;
2529/// All headers sent with the HTTP request.
2630pub type RequestHeaders = HashMapXxHash3_64 < RequestHeadersKey , RequestHeadersValue > ;
2731/// The result type returned from a request reader handler.
@@ -30,15 +34,13 @@ pub type RequestReaderHandleResult = Result<Request, RequestError>;
3034pub type RwLockReadGuardRequest < ' a > = RwLockReadGuard < ' a , Request > ;
3135/// Write guard for a `Request` wrapped in a `RwLock`.
3236pub type RwLockWriteGuardRequest < ' a > = RwLockWriteGuard < ' a , Request > ;
33- /// Optional value for a query parameter.
34- pub type OptionRequestQuerysValue = Option < RequestQuerysValue > ;
35- /// Optional value for a header.
36- pub type OptionRequestHeadersValue = Option < RequestHeadersValue > ;
3737/// The raw cookie string from the HTTP request header.
3838pub type CookieString = String ;
3939/// Key type used in the request cookies.
4040pub type CookiesKey = String ;
4141/// Value type used in the request cookies.
4242pub type CookiesValue = String ;
43+ /// Optional value for a cookie.
44+ pub type OptionCookiesValue = Option < CookiesValue > ;
4345/// All cookies parsed from the request Cookie header.
4446pub type Cookies = HashMapXxHash3_64 < CookiesKey , CookiesValue > ;
0 commit comments