Requestor

The Requestor is the lowest-level component in prawcore. It wraps a requests.Session and is responsible for issuing the actual HTTP requests to Reddit. Subclass it to customize request behavior, for example to add caching or logging.

class prawcore.requestor.Requestor(user_agent, oauth_url='https://oauth.reddit.com', reddit_url='https://www.reddit.com', session=None, timeout=16.0)

Requestor provides an interface to HTTP requests.

Parameters:
close()

Call close on the underlying session.

Return type:

None

request(*args, timeout=None, **kwargs)

Issue the HTTP request capturing any errors that may occur.

Return type:

Response

Parameters: