attestedhttp

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Transport     *Transport
	CheckRedirect func(req *http.Request, via []*http.Request) error
	Jar           http.CookieJar
	Timeout       time.Duration
	// contains filtered or unexported fields
}

Wrapper for net/http Client

func (*Client) CloseIdleConnections

func (c *Client) CloseIdleConnections()

Wrapper for net/http client.CloseIdleConnections()

func (*Client) Do

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

Wrapper for net/http client.Do()

func (*Client) Get

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

Wrapper for net/http client.Get()

func (*Client) Head

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

Wrapper for net/http client.Head()

func (*Client) Post

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

Wrapper for net/http client.Post()

func (*Client) PostForm

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

Wrapper for net/http client.PostForm()

type Server

type Server struct {
	*http.Server

	// Additional aTLS parameters
	Attest      string
	MutualTls   bool
	CmcAddr     string
	CmcApi      atls.CmcApiSelect
	CmcNetwork  string
	Cmc         *cmc.Cmc
	CmcPolicies []byte
	Ca          []byte
	ResultCb    func(result *ar.VerificationResult)
}

Wrapper for http.Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

type Transport

type Transport struct {

	// Wrapped http.Transport parameters
	TLSClientConfig        *tls.Config
	TLSHandshakeTimeout    time.Duration
	DisableKeepAlives      bool
	DisableCompression     bool
	MaxIdleConns           int
	MaxIdleConnsPerHost    int
	MaxConnsPerHost        int
	IdleConnTimeout        time.Duration
	ResponseHeaderTimeout  time.Duration
	ExpectContinueTimeout  time.Duration
	MaxResponseHeaderBytes int64
	WriteBufferSize        int
	ReadBufferSize         int

	// Additional aTLS parameters
	Attest      string
	MutualTls   bool
	CmcAddr     string
	CmcApi      atls.CmcApiSelect
	CmcNetwork  string
	Cmc         *cmc.Cmc
	CmcPolicies []byte
	Ca          []byte
	ReadTimeout time.Duration
	ResultCb    func(result *ar.VerificationResult)
}

Wrapper for net/http Transport

Jump to

Keyboard shortcuts

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