package
0.14.1
Repository: https://github.com/ipfs/go-ipfs-cmds.git
Documentation: pkg.go.dev

# Functions

ClientWithAPIPrefix specifies an API URL prefix.
ClientWithFallback adds a fallback executor to the client.
ClientWithHeader adds an HTTP header to the client.
ClientWithHTTPClient specifies a custom http.Client.
ClientWithRawAbsPath enables the rawAbspath for [files.NewMultiFileReader].
ClientWithUserAgent specifies the HTTP user agent for the client.
NewClient constructs a new HTTP-backed command executor.
No description provided by the author
NewHandler creates the http.Handler for the given commands.
NewResponseEmitter returns a new ResponseEmitter.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StreamErrHeader is used as trailer when stream errors happen.

# Variables

AllowedExposedHeaders is the list of defaults Access-Control-Expose-Headers separated by comma.
AllowedExposedHeadersArr defines the default Access-Control-Expose-Headers.
ErrNotFound is returned when the endpoint does not exist.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Interfaces

ResponseEmitter interface defines the components that can care of sending the response to HTTP Requests.

# Type aliases

ClientOpt is an option that can be passed to the HTTP client constructor.
ResponseEmitterOption is the type describing options to the NewResponseEmitter function.