Versions in this module Expand all Collapse all v0 v0.0.2 Dec 16, 2025 v0.0.1 Dec 16, 2025 Changes in this version + const UserAgentHeaderKey + type Client struct + func NewClient() *Client + func (c *Client) GetWithContext(ctx context.Context, url string, opts ...GetOptions) (*http.Response, error) + type GetOptions func(*http.Request) + func WithHeader(key, value string) GetOptions + func WithJSONAccept() GetOptions + type HeaderOption func(map[string]string) + func WithAuthentication(key, token string) HeaderOption + func WithSlinkyVersionUserAgent() HeaderOption + type RoundTripperWithHeaders struct + func NewRoundTripperWithHeaders(next http.RoundTripper, headerOptions ...HeaderOption) *RoundTripperWithHeaders + func (r *RoundTripperWithHeaders) RoundTrip(req *http.Request) (*http.Response, error)