Skip to main content

http_request

Function http_request 

Source
pub fn http_request(req: &HttpRequest) -> Result<HttpResponse, PluginError>
Expand description

http.request:宿主代理执行 HTTP(S)。网络失败(连接/超时)→ Err(internal); 拿到响应(含 4xx/5xx)→ Ok(HttpResponse)。