HTTP Requests

class git_bot_feedback.Request

An HTTP request to send using the client’s connection.

Use api_url to assemble the url.

body

The request body as text.

headers

The request headers. These override the client’s default headers.

method

The HTTP method (case-insensitive).

set_token(token: str) → None

–

Set the authentication token to send with this request.

The client adds the token as a sensitive header with the name its git server expects, replacing any header of the same name in headers. Use token_env_vars to find the token’s variable.

url

The full URL to send the request to.

class git_bot_feedback.Response

The response of an HTTP request.

body

The response body as text.

headers

The response headers (names are lowercase).

status

The HTTP status code.