sym.sdk.integrations.dangerous.http.SymRequest

class sym.sdk.integrations.dangerous.http.SymRequest(url: str, session: Optional[requests.sessions.Session] = None)

Bases: object

Wraps a URL that you might make a request to.

Handles sharing a Session across a host.

Methods

go(method[, data, headers])

Executes a request and caches the response.

parsed()

with_path(path)

Returns a SymRequest with the specified sub-path

go(method: Literal[GET, POST, PUT, PATCH, DELETE], data: Optional[Dict] = None, headers: Optional[Dict[str, str]] = None)requests.models.Response

Executes a request and caches the response.

with_path(path: str)

Returns a SymRequest with the specified sub-path

You can also use the / operator as a shortcut for this method.