vibe-http ~master (2021-03-22T09:44:24Z)
Home
Dub
Repo
HTTPServerResponse.writeJsonBody
vibe
http
server
HTTPServerResponse
Writes a JSON message with the specified status
void
writeJsonBody
(T data, int status, bool allow_chunked)
struct
HTTPServerResponse
@
safe
void
writeJsonBody
(
T
)
(
T
data
,
int
status
,
bool
allow_chunked
= false
)
void
writeJsonBody
(T data, int status, string content_type, bool allow_chunked)
void
writeJsonBody
(T data, string content_type, bool allow_chunked)
void
writeJsonBody
(T data, bool allow_chunked)
void
writePrettyJsonBody
(T data, bool allow_chunked)
Meta
Source
See Implementation
vibe
http
server
HTTPServerResponse
constructors
this
functions
connectProxy
finalize
opCast
redirect
sendBadRequest
setCookie
setStatusCode
startSession
switchProtocol
switchToHTTP2
terminateSession
waitForConnectionClose
writeBody
writeJsonBody
writePrettyJsonBody
writeRawBody
properties
bodyWriter
bodyWriterH2
bytesWritten
connected
contentType
cookies
data
headerWritten
headers
httpVersion
isHeadResponse
m_isHeadResponse
m_session
m_settings
statusCode
statusPhrase
timeFinalized
tls
toString
writeVoidBody
Writes a JSON message with the specified status