Documentation
¶
Overview ¶
Package client provides a basic SOAP client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrSOAP can be used with errors.Is. ErrSOAP = errors.New("SOAP error") )
Functions ¶
func ParseResponseAction ¶
ParseResponse extracts a parsed action from an HTTP response. The caller is responsible for calling resp.Body.Close(), but this function will consume the entire response body.
func PerformAction ¶
PerformAction makes a SOAP request, with the given action.
This is a convenience for calling `Client.Do` without creating `*envelope.Action` values.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a SOAP client, attached to a specific SOAP endpoint. the zero value is not usable, use NewClient() to create an instance.
type HTTPClient ¶
HTTPClient defines the interface required of an HTTP client. It is a subset of *http.Client.
type Option ¶
type Option func(*options)
Option is the type for optional configuration of a Client.
func WithHTTPClient ¶
func WithHTTPClient(httpClient HTTPClient) Option
WithHTTPClient specifies an *http.Client to use instead of http.DefaultClient.