vibe-d ~master (2022-11-16T10:14:41Z)
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)
class
HTTPServerResponse
void
writeJsonBody
(
T
)
(
T
data
,
string
content_type
,
bool
allow_chunked
= false
)
void
writeJsonBody
(T data, bool allow_chunked)
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