HTTP, cache, cookie, and request sandbox helpers for crater browser
Dependencies
mizchi/crater-browser-http does not have a README file
pub(all) suberror HttpError {
NetworkError(String)
InvalidUrl(String)
TimeoutError
CorsError(String)
SandboxError(String)
CorsBlocked(String)
PreflightFailed(String)
}pub(all) struct FetchOptions {
http_method : String
headers : Map[String, String]
body : String
timeout_ms : Int
mode : RequestMode
credentials : CredentialsMode
origin : String
sandbox : RequestSandbox
}fn enforce_cors_response(url : String, options : FetchOptions, response : HttpResponse) -> HttpResponse raise HttpErrorHTTP, cache, cookie, and request sandbox helpers for crater browser
Dependencies