HTTP Requests¶
- class git_bot_feedback.Request¶
An HTTP request to send using the client’s connection.
Use
api_urlto assemble theurl.- 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. Usetoken_env_varsto find the token’s variable.
- url¶
The full URL to send the request to.