http

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientOption

type ClientOption func(*clientOptions)

func WithHTTPClient

func WithHTTPClient(client *http.Client) ClientOption

WithHTTPClient sets the http client for the client. This allows custom http clients to be used.

type GatewayHttpClient

type GatewayHttpClient struct {
	// contains filtered or unexported fields
}

func NewGatewayHttpClient

func NewGatewayHttpClient(target *url.URL, opts ...ClientOption) (*GatewayHttpClient, error)

NewGatewayHttpClient creates a new gateway http client. If the client does not have a cookie jar, an error is returned.

func (*GatewayHttpClient) Auth

Auth authenticates the client with the gateway. It sets the returned cookie in the client's cookie jar.

func (*GatewayHttpClient) GetAuthParameter

func (g *GatewayHttpClient) GetAuthParameter(ctx context.Context) (*types.GatewayAuthParameter, error)

GetAuthParameter returns the auth parameter for the client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL