MCPcopy Create free account
hub / github.com/dialect-app/dialect / post

Method post

dialect/providers/soup.py:221–244  ·  view source on GitHub ↗

Helper for POST HTTP request. Args: url: Url of the request. data: Request body or form data. headers: HTTP headers of the message. form: If the data should be encoded as a form. check_common: If response data should be ch

(
        self,
        url: str,
        data: Any = {},
        headers: dict = {},
        form: bool = False,
        check_common: bool = True,
        return_json: bool = True,
    )

Source from the content-addressed store, hash-verified

219 return await self.request("GET", url, headers=headers, check_common=check_common, return_json=return_json)
220
221 async def post(
222 self,
223 url: str,
224 data: Any = {},
225 headers: dict = {},
226 form: bool = False,
227 check_common: bool = True,
228 return_json: bool = True,
229 ) -> Any:
230 """
231 Helper for POST HTTP request.
232
233 Args:
234 url: Url of the request.
235 data: Request body or form data.
236 headers: HTTP headers of the message.
237 form: If the data should be encoded as a form.
238 check_common: If response data should be checked for errors using check_known_errors.
239 return_json: If the response should be parsed as JSON.
240
241 Returns:
242 The JSON deserialized to a python object or bytes if ``json`` is ``False``.
243 """
244 return await self.request("POST", url, data, headers, form, check_common, return_json)

Callers 7

translateMethod · 0.80
translateMethod · 0.80
validate_api_keyMethod · 0.80
translateMethod · 0.80
suggestMethod · 0.80
translateMethod · 0.80
translateMethod · 0.80

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected