We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the Cohttp version, there is a respond function and body type like this:
respond
body
let to_body = function | `String s -> Body.of_string s | `Empty -> Body.empty | `Json j -> j |> Yojson.Safe.to_string |> Body.of_string let respond ?headers ?status body = Response.make ?headers ?status ~body:(to_body body) () |> Lwt.return
Personally I thought that was a nice API, is there a reason it's been removed from the latest version?
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
In the Cohttp version, there is a
respond
function andbody
type like this:Personally I thought that was a nice API, is there a reason it's been removed from the latest version?
The text was updated successfully, but these errors were encountered: