http

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlwaysThen

func AlwaysThen(then time.Time) client.EventDefaulter

func ClientDirect

func ClientDirect(t *testing.T, tc DirectTapTest, copts ...client.Option)

func ClientLoopback

func ClientLoopback(t *testing.T, tc TapTest, copts ...client.Option)

func ClientMiddleware

func ClientMiddleware(t *testing.T, tc TapTest, copts ...client.Option)

func NewTap

func NewTap() *tapHandler

Types

type DirectTapTest

type DirectTapTest struct {
	// contains filtered or unexported fields
}

type DirectTapTestCases

type DirectTapTestCases map[string]DirectTapTest

type TapTest

type TapTest struct {
	// contains filtered or unexported fields
}

type TapTestCases

type TapTestCases map[string]TapTest

type TapValidation

type TapValidation struct {
	Method        string
	URI           string
	Header        http.Header
	Body          string
	Status        string
	ContentLength int64
}

Jump to

Keyboard shortcuts

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