Fix revdeps from #17571#17577
Conversation
See https://github.com/ocaml/opam-repository/pulls Signed-off-by: Marcello Seri <marcello.seri@gmail.com>
|
Commit: df6cf79 A pull request by opam-seasoned @mseri. ☀️ All lint checks passed df6cf79
☀️ Installability check (+0) |
|
Ping, upcoming breakage from the cohttp 3.0.0 release:
|
|
Thanks for the ping @mseri! 🙌 Will add an upper bound to Opium. |
|
Thanks for the ping, I'll add the upper bound for |
|
Just a note about the server side the update of the API. Due to (** [create ?timeout ?backlog ?stop ?on_exn cfg protocol service t] is a new
HTTP server.
The user can decide to start a simple HTTP server (without encryption)
or one with TLS encryption. It depends on what the user gives as [cfg],
[protocol] and [service]. Using [conduit-lwt-tls], the end-user is able
to make an encrypted HTTP server with:
{[
let run =
create cfg Conduit_lwt_tls.TCP.protocol Conduit_lwt_tls.TCP.service
]}
A simple HTTP server (with [conduit-lwt]) is:
{[
let run =
create cfg Conduit_lwt.TCP.protocol Conduit_lwt.TCP.service
]}
[cfg] depends on the given [service] - and let the user to define which
port the server use, and, in the case of {!Conduit_lwt_tls.TCP.service},
which TLS certificate it uses. See [Conduit] for more information about
{i protocol} and {i service}.
When provided, the [stop] thread will terminate the server if it
ever becomes determined.
When provided, [backlog] will limit the number of open
connections.
Every connection will be served in a new lightweight thread that
is invoked via the callback defined in [t]. If the callback raises
an exception, it is passed to [on_exn] (by default, to a function
that logs the exception using the {!Logs} library). *)
val create :
?timeout:int ->
?backlog:int ->
?stop:unit Lwt.t ->
?on_exn:(exn -> unit) ->
'cfg ->
(_, 'flow) Conduit_lwt.protocol ->
('cfg, 't, 'flow) Conduit_lwt.Service.service -> t -> (unit -> unit Lwt.t)
let default_mode =
{ Conduit_lwt.TCP.sockaddr= Unix.PF_INET (Unix.inet_addr_loopback, 8080)
; capacity= 40 }
let run ?(mode= default_mode):cfg site =
let config = ... in
create cfg Conduit_lwt.TCP.protocol Conduit_lwt.TCP.service configIf someone need any help about migration process, feel free to open an issue in the cohttp repository and I will happy to help you. |
|
Also let me mention that |
|
Thanks @mseri for the heads up, will add an upper bound to Sihl 🙂 |
|
Thanks for the ping @mseri. I'll take care of it. |
Signed-off-by: Marcello Seri <marcello.seri@gmail.com>
See https://github.com/ocaml/opam-repository/pulls
Signed-off-by: Marcello Seri marcello.seri@gmail.com