-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
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
Use cohttp and eio instead of curly #44
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@@ -97,19 +97,50 @@ let version = | |||
|
|||
let info = Cmd.info "get-activity" ~version | |||
|
|||
module Client = struct | |||
let null_auth ?ip:_ ~host:_ _ = Ok None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We really should make a cohttp-eio-tls package with a proper authenticator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can take a look at doing it this week.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, but I'm only going to work on this PR during Hacking Days, so no pressure!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated the example to use a proper authenticator now: mirage/ocaml-cohttp#1091
It's just:
let authenticator =
match Ca_certs.authenticator () with
| Ok x -> x
| Error (`Msg m) -> Fmt.failwith "Failed to create system store X509 authenticator: %s" m
Undoing #12 and using
eio
instead oflwt