rest

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 3 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 {
	// URL is the full URL (including protocol and eventual query string et al.)
	URL string

	// Headers is an optional map of name -> value tuples of HTTP headers
	Headers map[string]string

	// Context gives the name of the calling context, eg. "rest"
	Context string
}

Client ...

func (*Client) Get

func (c *Client) Get() (statusCode int, body []byte, err error)

Get ...

func (*Client) Post

func (c *Client) Post(data []byte, contentType string) (statusCode int, body []byte, err error)

Post ...

Directories

Path Synopsis
header

Jump to

Keyboard shortcuts

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