Telegraph icon indicating copy to clipboard operation
Telegraph copied to clipboard

Convenience initialiser for HTTPResponse to send codable data

Open ConfusedVorlon opened this issue 1 year ago • 0 comments

allows something like the following

let info = MyCodableClass() let response = HTTPResponse(encodable:info)

this will return a json body with the content type header set

ConfusedVorlon avatar Nov 26 '23 11:11 ConfusedVorlon