edhttp

package
v0.0.0-...-6b33518 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: AGPL-3.0-or-later Imports: 11 Imported by: 0

Documentation

Overview

Package edhttp is an HTTP client that connects to HTTP servers on edtls listeners.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Key ed25519.PrivateKey
	// contains filtered or unexported fields
}

func (*Client) Do

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

func (*Client) Get

func (c *Client) Get(key ed25519.PublicKey, url string) (*http.Response, error)

func (*Client) Post

func (c *Client) Post(key ed25519.PublicKey, url string, contentType string, body io.Reader) (*http.Response, error)

func (*Client) PostJSON

func (c *Client) PostJSON(key ed25519.PublicKey, url string, v interface{}) (*http.Response, error)

Jump to

Keyboard shortcuts

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