testutils

package
v0.0.0-...-bd9d91d Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2018 License: MPL-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 Server

type Server struct {
	BaseURL *url.URL

	Mux *http.ServeMux
	// contains filtered or unexported fields
}

func NewTestServer

func NewTestServer(t *testing.T) *Server

func (*Server) CheckHeaders

func (srv *Server) CheckHeaders(req *http.Request)

CheckHeaders asserts that the Authorization and Content-Type type Server struct headers are correct in an incoming request.

func (*Server) Stop

func (srv *Server) Stop()

Jump to

Keyboard shortcuts

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