mockrest

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2016 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 Server

type Server struct {
	URL string
	// contains filtered or unexported fields
}

func New

func New() *Server

func StartNewWithBody

func StartNewWithBody(body string) *Server

func StartNewWithFile

func StartNewWithFile(file string) *Server

func StartNewWithStatusCode

func StartNewWithStatusCode(status int) *Server

func (*Server) Enqueue

func (s *Server) Enqueue(h http.HandlerFunc)

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) Start

func (s *Server) Start() string

func (*Server) Stop

func (s *Server) Stop()

func (*Server) TakeRequest

func (s *Server) TakeRequest() *http.Request

func (*Server) TakeRequestWithTimeout

func (s *Server) TakeRequestWithTimeout(duration time.Duration) *http.Request

Jump to

Keyboard shortcuts

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