Native HTTP, process, and worktree adapters for bit
Dependencies
pub struct NativeHttpClient {
dummy : Int
}impl AsyncHttpClient for NativeHttpClientasync fn get(_self : NativeHttpClient, url : String, headers : Map[String, String]) -> (HttpResponse, Bytes) raise GitErrorasync fn post(_self : NativeHttpClient, url : String, body : Bytes, headers : Map[String, String]) -> (HttpResponse, Bytes) raise GitErrorasync fn clone_http(remote : String, prefer_v2 : Bool, depth? : Int, filter? : FilterSpec) -> (Array[(ObjectId, String)], Array[PackObject]) raise GitErrorasync fn clone_http_to_fs(remote : String, prefer_v2 : Bool, fs : &FileSystem, root : String, rfs : &RepoFileSystem, depth? : Int, filter? : FilterSpec, no_checkout? : Bool) -> Array[(ObjectId, String)] raise GitErrorasync fn clone_process(remote : String, prefer_v2 : Bool, depth? : Int, filter? : FilterSpec) -> (Array[(ObjectId, String)], Array[PackObject]) raise GitErrorasync fn clone_process_to_fs(remote : String, prefer_v2 : Bool, fs : &FileSystem, root : String, rfs : &RepoFileSystem, depth? : Int, filter? : FilterSpec, no_checkout? : Bool) -> Array[(ObjectId, String)] raise GitErrorasync fn clone_remote(remote : String, prefer_v2 : Bool) -> (Array[(ObjectId, String)], Array[PackObject]) raise GitErrorasync fn clone_remote_to_fs(remote : String, prefer_v2 : Bool, fs : &FileSystem, root : String, rfs : &RepoFileSystem) -> Array[(ObjectId, String)] raise GitErrorasync fn clone_to_fs_with_http(remote : String, prefer_v2 : Bool, depth : Int, filter : FilterSpec, fs : &FileSystem, root : String, http_get : async (String, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, http_post : async (String, Bytes, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, rfs : &RepoFileSystem, no_checkout? : Bool) -> Array[(ObjectId, String)] raise GitErrorasync fn clone_with_http(remote : String, prefer_v2 : Bool, depth : Int, filter : FilterSpec, http_get : async (String, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, http_post : async (String, Bytes, Map[String, String]) -> (HttpResponse, Bytes) raise GitError) -> (Array[(ObjectId, String)], Array[PackObject]) raise GitErrorasync fn discover_upload_refs_with_http(remote : String, prefer_v2 : Bool, http_get : async (String, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, http_post : async (String, Bytes, Map[String, String]) -> (HttpResponse, Bytes) raise GitError) -> (Array[(ObjectId, String)], Array[String], ProtocolVersion, Map[String, String]) raise GitErrorasync fn fetch_objects_http(remote : String, wants : Array[ObjectId], prefer_v2 : Bool, depth? : Int, filter? : FilterSpec, haves? : Array[ObjectId], shallow? : Array[ObjectId]) -> Array[PackObject] raise GitErrorasync fn fetch_objects_process(remote : String, wants : Array[ObjectId], prefer_v2 : Bool, depth? : Int, filter? : FilterSpec, haves? : Array[ObjectId], shallow? : Array[ObjectId]) -> Array[PackObject] raise GitErrorasync fn fetch_objects_with_http(remote : String, wants : Array[ObjectId], prefer_v2 : Bool, depth : Int, filter : FilterSpec, http_get : async (String, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, http_post : async (String, Bytes, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, haves? : Array[ObjectId], shallow? : Array[ObjectId]) -> Array[PackObject] raise GitErrorasync fn fetch_pack_http_result(remote : String, wants : Array[ObjectId], prefer_v2 : Bool, depth? : Int, filter? : FilterSpec, haves? : Array[ObjectId], shallow? : Array[ObjectId]) -> FetchPackResult raise GitErrorasync fn fetch_pack_process_result(remote : String, wants : Array[ObjectId], prefer_v2 : Bool, depth? : Int, filter? : FilterSpec, haves? : Array[ObjectId], shallow? : Array[ObjectId]) -> FetchPackResult raise GitErrorasync fn fetch_pack_with_http(remote : String, wants : Array[ObjectId], prefer_v2 : Bool, depth : Int, filter : FilterSpec, http_get : async (String, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, http_post : async (String, Bytes, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, haves? : Array[ObjectId], shallow? : Array[ObjectId]) -> Bytes raise GitErrorasync fn fetch_pack_with_http_result(remote : String, wants : Array[ObjectId], prefer_v2 : Bool, depth : Int, filter : FilterSpec, http_get : async (String, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, http_post : async (String, Bytes, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, haves? : Array[ObjectId], shallow? : Array[ObjectId]) -> FetchPackResult raise GitErrorasync fn native_http_get(url : String, headers : Map[String, String]) -> (HttpResponse, Bytes) raise GitErrorasync fn native_http_post(url : String, body : Bytes, headers : Map[String, String]) -> (HttpResponse, Bytes) raise GitErrorasync fn native_http_put(url : String, body : Bytes, headers : Map[String, String]) -> (HttpResponse, Bytes) raise GitErrorasync fn upload_pack_info_refs_with_http(remote : String, prefer_v2 : Bool, http_get : async (String, Map[String, String]) -> (HttpResponse, Bytes) raise GitError) -> Bytes raise GitErrorasync fn upload_pack_request(remote : String, body : Bytes, prefer_v2 : Bool) -> Bytes raise GitErrorasync fn upload_pack_request_http(remote : String, body : Bytes, prefer_v2 : Bool) -> Bytes raise GitErrorasync fn upload_pack_request_process(remote : String, body : Bytes, prefer_v2 : Bool) -> Bytes raise GitErrorasync fn upload_pack_request_with_http(remote : String, body : Bytes, prefer_v2 : Bool, http_post : async (String, Bytes, Map[String, String]) -> (HttpResponse, Bytes) raise GitError) -> Bytes raise GitErrorNative HTTP, process, and worktree adapters for bit
Dependencies