vibe-d v0.9.4 (2021-09-30T12:24:53Z)
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)
class
HTTPServerResponse
void
writeJsonBody
(
T
)
(
T
data
,
int
status
,
string
content_type
,
bool
allow_chunked
= false
)
void
writeJsonBody
(T data, string content_type, bool allow_chunked)
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