vibe-d v0.9.8-alpha.3 (2023-10-20T08:14:46Z)
Home
Dub
Repo
enforceHTTP
index
vibe
http
common
Utility function that throws a HTTPStatusException if the condition is not met.
T
enforceHTTP
(
T
)
(
T
condition
,
HTTPStatus
statusCode
,
lazy
string
message
= null
,
string
file
= __FILE__
,
typeof
(__LINE__)
line
= __LINE__
)
Meta
Source
See Implementation
index
vibe
http
common
classes
ChunkedInputStream
ChunkedOutputStream
Cookie
HTTPRequest
HTTPResponse
HTTPStatusException
MultiPart
enums
HTTPMethod
HTTPVersion
functions
chunkedInputStream
createChunkedInputStreamFL
createChunkedOutputStream
createChunkedOutputStreamFL
enforceBadRequest
enforceHTTP
getHTTPVersionString
httpMethodFromString
httpMethodString
parseHTTPCookie
parseHTTPVersion
structs
CookieValueMap
Utility function that throws a HTTPStatusException if the condition is not met.