How the HTTP API works
mainThe HTTP API is a lower-level interface used to extend Octocrab when the Semantic API does not yet support a specific GitHub feature.
There are two types of HTTP methods:
- Standard methods (
get,post,patch,put,delete): These accept a relative route and an optional body. They automatically format the URL with the base URL and return an error if GitHub does not return a successful status. - Companion methods (
_get,_post, etc.): These perform no additional pre or post-processing, allowing you to manually inspect response status or headers.