custom_http

package
v0.0.0-...-4490b9b Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encryption

func Encryption(value bool) func(*Client) error

func SendCBT

func SendCBT(value bool) func(*Client) error

func Unwrap

func Unwrap(input []byte, ct string) ([]byte, string, error)

func Wrap

func Wrap(input []byte, ct string) ([]byte, string, error)

Types

type Client

type Client struct {
	Debug bool
	// contains filtered or unexported fields
}

func NewClient

func NewClient(httpClient *http.Client, ntlmClient *custom_ntlmssp.Client, options ...func(*Client) error) (*Client, error)

func (*Client) Do

func (c *Client) Do(req *http.Request) (resp *http.Response, err error)

func (*Client) Get

func (c *Client) Get(url string) (resp *http.Response, err error)

func (*Client) Head

func (c *Client) Head(url string) (resp *http.Response, err error)

func (*Client) Post

func (c *Client) Post(url, contentType string, body io.Reader) (resp *http.Response, err error)

func (*Client) PostForm

func (c *Client) PostForm(url string, data url.Values) (resp *http.Response, err error)

func (*Client) SetOption

func (c *Client) SetOption(options ...func(*Client) error) error

Jump to

Keyboard shortcuts

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