request

package
v0.0.0-...-4896a30 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Address string
	Client  *http.Client
}

Command is a wrapper for making http requests to Pilot or Envoy via a CLI command.

func (*Command) Do

func (c *Command) Do(method, path, body string) ([]byte, error)

Do executes an http request using the specified arguments

func (*Command) Log

func (c *Command) Log(method, path, body string) string

Log logs the request

Jump to

Keyboard shortcuts

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