Skip to content

http_get

Source

Hook for Requests 'get' type prompts.Link

Inputs

Name Type Default Required Description
username str None False
password str None False
url str True URL for the new request object.
headers dict None False Headers to include in request.
extra_kwargs Union[str, dict] {} True Optional arguments that request takes.
params dict None False Dictionary, list of tuples or bytes to send in the query string for the Request.
no_exit bool False True Whether to exit on non-200 response.
encoding str utf-8 True For text/plain type return values, the encoding of the type.

Arguments

Position Argument Type
1 url str
2 kwargs str
3 params dict

Returns

dict

Examples

Make get request and store output in key

compact->: http_get https://httpbin.org/get