Fluent builder around Response for ergonomic reply construction.
return ctx.res.status(201).json({ created: true });// or return ctx.res.ok({ created: true }); Copy
return ctx.res.status(201).json({ created: true });// or return ctx.res.ok({ created: true });
Private
HTTP 201 helper mirroring express' res.created.
res.created
Optional
Replace/append a header to the backing response state.
Serialize data as JSON and return a Response.
Respond with a 204 No Content.
Convenience 200 helper returning JSON when data is supplied.
Construct a Response using whatever body the caller supplies.
Serialize data as plain text.
Fluent builder around Response for ergonomic reply construction.