Module io

Source

Structs§

FlowControlHeaders
HttpResponse
Adapts lower level I/O HTTP/Shell outputs to a common Response.
HttpResponseBuilder
Builder for HttpResponse.
Page
PageHeader
RateLimitHeader
Unifies the different ratelimit headers available from the different remotes. Github API ratelimit headers: remaining: x-ratelimit-remaining reset: x-ratelimit-reset Gitlab API ratelimit headers: remaining: RateLimit-Remaining reset: RateLimit-Reset
ShellResponse
ShellResponseBuilder
Builder for ShellResponse.

Enums§

CmdInfo
HttpResponseBuilderError
Error type for HttpResponseBuilder
ResponseField
ShellResponseBuilderError
Error type for ShellResponseBuilder

Constants§

GITHUB_RATELIMIT_REMAINING
GITHUB_RATELIMIT_RESET
GITLAB_RATELIMIT_REMAINING
GITLAB_RATELIMIT_RESET
LINK_HEADER
RETRY_AFTER

Traits§

HttpRunner
A trait for the HTTP protocol. Implementers need to conform with the HTTP constraints and requirements. Implementers accept a Request that wraps headers, payloads and HTTP methods. Clients can potentially do HTTP calls against a remote server or mock the responses for testing purposes.
TaskRunner
A trait that handles the execution of processes with a finite lifetime. For example, it can be an in-memory process for testing or a shell command doing I/O. It handles all processes that do not conform with the HTTP protocol. For that, check the HttpRunner

Functions§

parse_page_headers
parse_ratelimit_headers