package
0.29.0-beta
Repository: https://github.com/instill-ai/component.git
Documentation: pkg.go.dev

# Functions

New returns an httpclient configured to call a remote host.
WithEndUserError will unmarshal error response bodies as the error struct and will use their message as an end-user error.
WithLogger will use the provider logger to log the request and response information.
WrapURLError is a helper to add an end-user message to trasnport errros.

# Constants

MIMETypeJSON defines the MIME type for JSON documents.

# Structs

Client performs HTTP requests for connectors, implementing error handling and logging in a consistent way.

# Interfaces

ErrBody allows Client to extract an error message from the API.
No description provided by the author

# Type aliases

Option provides configuration options for a client.