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

Method request

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

Source from the content-addressed store, hash-verified

127 /// Make a request with the given method and URL.
128 #[pyo3(signature = (method, url, **kwds))]
129 pub fn request<'py>(
130 &self,
131 py: Python<'py>,
132 method: Method,
133 url: PyBackedStr,
134 kwds: Option<RequestParams>,
135 ) -> PyResult<Bound<'py, PyAny>> {
136 let client = self.0.clone();
137 future_into_py(py, execute_request(client, method, url, kwds))
138 }
139
140 /// Make a WebSocket request to the given URL.
141 #[pyo3(signature = (url, **kwds))]

Callers 8

getMethod · 0.45
headMethod · 0.45
postMethod · 0.45
putMethod · 0.45
deleteMethod · 0.45
patchMethod · 0.45
optionsMethod · 0.45
traceMethod · 0.45

Calls 1

execute_requestFunction · 0.85

Tested by

no test coverage detected