Documentation
¶
Overview ¶
Package servicehttp owns signed HTTP exchanges for service clients. Resource discovery, protocol statuses and domain errors belong to callers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client owns connection setup, signing and bounded response reads. Its HTTP client never follows redirects.
func New ¶
func New(endpoint, unixPath string, key sshcert.RawPrivateKey, audience string, cfg tlsconfig.Config) (*Client, error)
New uses unixPath as the endpoint path for Unix sockets; HTTP URLs retain their configured path. The audience identifies the receiving service.
func (*Client) Do ¶
Do signs the request, sends it without following redirects, and reads at most limit bytes. ContentType is explicit, including for requests without a body.
Click to show internal directories.
Click to hide internal directories.