vibe-http ~master (2021-03-22T09:44:24Z)
Home
Dub
Repo
HTTPServerResponseData.writePrettyJsonBody
vibe
http
server
HTTPServerResponseData
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)
void
writePrettyJsonBody
(T data, bool allow_chunked)
struct
HTTPServerResponseData
protected @
safe
void
writePrettyJsonBody
(
T
)
(
T
data
,
bool
allow_chunked
= false
)
Meta
Source
See Implementation
vibe
http
server
HTTPServerResponseData
constructors
this
functions
connectProxy
finalize
isHeadResponse
redirect
sendBadRequest
setCookie
startSession
switchProtocol
switchToHTTP2
terminateSession
tls
toString
waitForConnectionClose
writeBody
writeJsonBody
writePrettyJsonBody
writeRawBody
writeVoidBody
postblits
this(this)
properties
bodyWriter
bodyWriterH2
bytesWritten
connected
contentType
headerWritten
timeFinalized
variables
cookies
headers
httpVersion
statusCode
statusPhrase
Writes a JSON message with the specified status