# Packages
No description provided by the author
# Functions
NewAPI creates a new REST API component with the given configuration.
NewAPIWithHost creates a new REST API component and enables the libp2p-http endpoint using the given Host, if not nil.
# Constants
These are the default values for Config.
These are the default values for Config.
These are the default values for Config.
These are the default values for Config.
These are the default values for Config.
# Variables
ErrHTTPEndpointNotEnabled is returned when trying to perform operations that rely on the HTTPEndpoint but it is disabled.
ErrNoEndpointEnabled is returned when the API is created but no HTTPListenAddr, nor libp2p configuration fields, nor a libp2p Host are provided.