Open dkyowell opened 3 days ago
How do you create the ResponseBody containing the PDF? I think it's related to that
let body = ResponseBody.init(byteBuffer: .init(data: pdfData))
var headers = HTTPFields.init()
headers.append(.init(name: .contentType, value: MediaType.applicationPdf.description))
return .init(status: .ok, headers: headers, body: body)
Discussed in https://github.com/hummingbird-project/hummingbird/discussions/568