Skip to content

Conversation

@Julow
Copy link
Contributor

@Julow Julow commented Jun 12, 2025

On top of #267
This is equivalent to Cohttp_lwt_unix.Server.respond_file but is written directly against Ocsigen_response.Body.t introduced in #260, which is easier to translate to direct-style.

Julow added 3 commits June 20, 2025 15:55
This upgrade is needed to be able to target `cohttp-eio` which was added
in version 6.0.0.

Cohttp doesn't carry the content encoding in the Response type so some
code is added to add the `transfer-encoding` header.
This is equivalent to `Cohttp_lwt_unix.Server.respond_file` but is
written directly against `Ocsigen_response.Body.t`, which is easier to
translate to direct-style.
@Julow Julow force-pushed the ocsigen_respond_file branch from 5a55acb to f652f84 Compare June 20, 2025 13:58
@balat balat merged commit 4c79e09 into ocsigen:master Jul 6, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants