Shared types & traits (re-exports from bit_object)
Dependencies
pub(open) trait AsyncFileSystem {
async fn mkdir_p(Self, String) -> Unit raise GitError
async fn write_file(Self, String, Bytes) -> Unit raise GitError
async fn write_string(Self, String, String) -> Unit raise GitError
async fn remove_file(Self, String) -> Unit raise GitError
async fn remove_dir(Self, String) -> Unit raise GitError
}pub(open) trait AsyncHttpClient {
async fn get(Self, String, Map[String, String]) -> (HttpResponse, Bytes) raise GitError
async fn post(Self, String, Bytes, Map[String, String]) -> (HttpResponse, Bytes) raise GitError
}pub(open) trait AsyncRepoFileSystem {
async fn read_file(Self, String) -> Bytes raise GitError
async fn readdir(Self, String) -> Array[String] raise GitError
async fn is_dir(Self, String) -> Bool raise GitError
async fn is_file(Self, String) -> Bool raise GitError
async fn mtime(Self, String) -> (Int, Int) raise GitError
}pub(open) trait HttpClient {
fn get(Self, String, Map[String, String]) -> (HttpResponse, Bytes) raise GitError
fn post(Self, String, Bytes, Map[String, String]) -> (HttpResponse, Bytes) raise GitError
}impl AsyncHttpClient for MockHttpClientasync fn get(self : MockHttpClient, url : String, headers : Map[String, String]) -> (HttpResponse, Bytes) raise GitErrorasync fn post(self : MockHttpClient, url : String, body : Bytes, headers : Map[String, String]) -> (HttpResponse, Bytes) raise GitErrorimpl HttpClient for MockHttpClientfn get(self : MockHttpClient, url : String, _headers : Map[String, String]) -> (HttpResponse, Bytes) raise GitErrorfn post(self : MockHttpClient, url : String, _body : Bytes, _headers : Map[String, String]) -> (HttpResponse, Bytes) raise GitErrorfn MockHttpClient::add_response(self : MockHttpClient, url : String, code : Int, body : Bytes) -> UnitShared types & traits (re-exports from bit_object)
Dependencies