Documentation ¶
Overview ¶
Package httpio provides types for basic I/O interfaces over HTTP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*config) error
func WithBasicAuth ¶
WithBasicAuth sets up a basic authentification scheme.
func WithClient ¶
WithClient sets up Reader to use a user-provided HTTP client.
By default, Reader uses an httpio-local default client.
func WithContext ¶
WithContext configures Reader to use a user-provided context.
By default, Reader uses context.Background.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader presents an HTTP resource as an io.Reader and io.ReaderAt.
Click to show internal directories.
Click to hide internal directories.