Hacker GitHub

← All repos

mirage/ocaml-cohttp

View on GitHub ↗ ★ 779 OCaml

An OCaml library for HTTP clients and servers using Lwt or Async

12 mentions on Hacker News by 10 people: 0 stories, 12 comments · first 2014-07-04 · latest 2023-06-05

Mentions per year 12 mentions · busiest year 2016 (3)
20082026
  1. …If you want to see the exact name of the type you can always look up the signature of `Client.get`: https://github.com/mirage/ocaml-cohttp/blob/16e991ec1f7e5f0c... (nowadays LSP support in any good editor will show the type on hover) -…
    comment by yawaramin · 2023-06-05 · in The Rust I wanted had no future
  2. …request being made that is asynchronous, non-blocking but looks synchronous with no special syntax. https://github.com/mirage/ocaml-cohttp/blob/16e991ec1f7e5f0c... Performing these effects is similar to throwing exceptions up the callstack…
    comment by belmont_sup · 2023-06-05 · in The Rust I wanted had no future
  3. …quite some time now. [1] https://github.com/ocsigen/lwt/ [2] https://github.com/rgrinberg/opium [3] https://github.com/mirage/ocaml-cohttp/
    comment by anuragsoni · 2021-01-25 · in The RustyHermit Unikernel
  4. …powerful isomorphic web frameworks. Or do you want to spin up a quick JSON API server with Cohttp ( https://github.com/mirage/ocaml-cohttp )? Or dig into a high-performance, lower-level server ( https://github.com/inhabitedtype/httpaf )?…
    comment by yawaramin · 2019-02-15 · in Moving from Ruby to Rust
  5. But cohttp is slow. See https://github.com/mirage/ocaml-cohttp/issues/328 and https://github.com/inhabitedtype/httpaf
  6. Yes, Cohttp is from the folks who developed the Mirage unikernel: https://github.com/mirage/ocaml-cohttp . They make lightweight stuff that runs blazing fast.
  7. …a non-blocking one (where a "string t" is a promise for a "t" and read_line returns a promise). [1] https://github.com/mirage/ocaml-cohttp/blob/master/lib/trans... [2] https://github.com/mirage/ocaml-cohttp/blob/master/lib/s.mli (also…
  8. …functions and types and it will make use of those to construct the rest of the library). [1] - https://github.com/mirage/ocaml-cohttp
    comment by nv-vn · 2016-08-08 · in Network protocols, sans I/O
  9. FWIW, the current preferred web server at JS seems to be https://github.com/mirage/ocaml-cohttp (which supports both Async and Lwt). I wouldn't go so far as to call it a framework, though.
  10. …mature but it's mostly a friendly wrapper for an http layer that is fairly mature. Have a look at: https://github.com/mirage/ocaml-cohttp You can of course also use cohttp directly but it's a little raw.
    comment by rgrinberg · 2015-05-31 · in OCaml Resources (2006)
  11. …time and effort. [0] http://ocaml.org/ [1] https://realworldocaml.org/ [2] http://ocsigen.org/ [3] https://github.com/mirage/ocaml-cohttp
  12. For HTTP I always use 'ocaml-cohttp' (opam install cohttp): https://github.com/mirage/ocaml-cohttp/blob/master/examples/... For JSON I normally use 'Jsonm' but I've heard good things about 'Ezjsonm': https://github.com/samoht/ezjsonm I've…
    comment by djs55 · 2014-07-04 · in The March Towards Go