# Packages
Package test provides utility methods to test APIs based on the common API.
# Functions
NewAPI creates a new common API component with the given configuration.
NewAPIWithHost creates a new common API component and enables the libp2p-http endpoint using the given Host, if not nil.
# Constants
When passed to SendResponse(), it will figure out which http status to set by itself.
# 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.