Comments (2)
Ok the "bug" was on my side.
For the historians: I had something that worked with 6.0.0~alpha1 and an earlier Eio that included being able to log the body of the response before sending it; with master
since it's an Eio.Flow.t
logging it, even with Eio.Flow.copy
, consumes the stream so it is empty when flow_to_writer
is called.
@talex5 should Eio.Flow.copy
be called transfer
or move
instead?
from ocaml-cohttp.
That's an interesting point about the name. However, it's not always a more (e.g. if the source is a file then the file data isn't deleted).
from ocaml-cohttp.
Related Issues (20)
- High latency with Linux clients - or "It's always the Nagle's Algorithm" HOT 3
- Cohttp_eio.Server.run is hardcoded to listen on loopback HOT 2
- cohttp-eio: "large" chunked-response → exception Eio.Io Unix_error (Invalid argument, "writev", "") HOT 4
- cohttp-eio: confusing use of the `~sw` argument HOT 1
- cohttp 5.3.0: `Cookie.Set_cookie_hdr.extract` only work with lower case `set-cookie` and not uppercase `Set-Cookie` HOT 2
- Incompatibility with cohttp-lwt Server module IO HOT 3
- Supporting CONNECT requests.
- Add connection reset tests to cohttp-eio
- http library name HOT 2
- cohttp-eio(client): 400 BadRequest due to `Connection: TE` HOT 3
- How to use `cohttp-lwt-unix` on Windows 10 (cygwin) HOT 2
- Fd leak in handle_files
- Exception: SSL read() error: error:0A000126:SSL routines::unexpected eof while reading. HOT 2
- cohttp_curl: First HTTP header is prepended to output HOT 1
- Cohttp-lwt, Server: How should we now close `Expert response_action? HOT 2
- Please backport to v4 support for cmdliner >= 1.2.0 HOT 7
- Bad GET request when host is an IPv6 litteral results in 400 bad Request HOT 2
- Make response type abstract
- SSL read() error while reading response from a POST request HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocaml-cohttp.