package git-http

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Parameters

module HTTP : CLIENT
module IC : CHAN
module OC : CHAN

Signature

type 'a http_callback = Uri.t -> ((HTTP.IO.ic * HTTP.IO.oc) -> 'a Lwt.t) -> 'a Lwt.t
type 'a callback = Uri.t -> ((IC.t * OC.t) -> 'a Lwt.t) -> 'a Lwt.t
val with_http : ?init:string -> 'a http_callback -> 'a callback

Connect to an HTTP endpoint using conduit. The method is inferred from the URI by the Git protocol, the init string contains a marshaled S-expression representation of the actual header to use (which is set by Git.Sync.