vibe-d v0.9.8-alpha.3 (2023-10-20T08:14:46Z)
Home
Dub
Repo
HTTPServerResponse.writeJsonBody
index
vibe
http
server
HTTPServerResponse
Writes a JSON message with the specified status
void
writeJsonBody
(T data, int status, bool allow_chunked)
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)
class
HTTPServerResponse
scope
void
writeJsonBody
(
T
)
(
T
data
,
bool
allow_chunked
= false
)
Meta
Source
See Implementation
index
vibe
http
server
HTTPServerResponse
constructors
this
functions
connectProxy
finalize
isHeadResponse
redirect
setCookie
startSession
switchProtocol
terminateSession
tls
waitForConnectionClose
writeBody
writeJsonBody
writePrettyJsonBody
writeRawBody
writeVoidBody
properties
bodyWriter
bytesWritten
connected
headerWritten
timeFinalized
Writes a JSON message with the specified status