MCPcopy Create free account
hub / github.com/0x676e67/wreq-python / request

Method request

src/client/blocking/mod.rs:109–122  ·  view source on GitHub ↗
(
        &self,
        py: Python,
        method: Method,
        url: PyBackedStr,
        kwds: Option<RequestParams>,
    )

Source from the content-addressed store, hash-verified

107 /// Make a rqeuest with the specified method and URL.
108 #[pyo3(signature = (method, url, **kwds))]
109 pub fn request(
110 &self,
111 py: Python,
112 method: Method,
113 url: PyBackedStr,
114 kwds: Option<RequestParams>,
115 ) -> PyResult<BlockingResponse> {
116 py.allow_threads(|| {
117 let client = self.0.clone();
118 pyo3_async_runtimes::tokio::get_runtime()
119 .block_on(execute_request(client, method, url, kwds))
120 .map(Into::into)
121 })
122 }
123
124 /// Make a WebSocket request to the specified URL.
125 #[pyo3(signature = (url, **kwds))]

Callers 11

mainFunction · 0.95
mainFunction · 0.45
execute_requestFunction · 0.45
getMethod · 0.45
postMethod · 0.45
putMethod · 0.45
patchMethod · 0.45
deleteMethod · 0.45
headMethod · 0.45
optionsMethod · 0.45
traceMethod · 0.45

Calls 1

execute_requestFunction · 0.85

Tested by

no test coverage detected