Documentation ¶
Overview ¶
Package client defines types and functions for interacting with docconv HTTP servers.
Index ¶
Constants ¶
const DefaultEndpoint = "localhost:8888"
DefaultEndpoint is the default endpoint address (host:port) for docconv HTTP servers.
const DefaultProtocol = "http://"
DefaultProtocol is the default protocol used to construct paths when making docconv requests.
Variables ¶
var DefaultHTTPClient = http.DefaultClient
DefaultHTTPClient is the default HTTP client used to make requests to docconv HTTP servers.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a docconv HTTP client. Use New to make new Clients.
type Opt ¶
type Opt func(*Client)
Opt is an option used in New to create Clients.
func WithEndpoint ¶
WithEndpoint set the endpoint on a Client.
func WithHTTPClient ¶
WithHTTPClient sets the *http.Client used for all underlying calls.
func WithProtocol ¶
WithProtocol sets the protocol used in HTTP requests. Currently this must be either http:// or https://.