Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { Method string Path string sync.RWMutex // contains filtered or unexported fields }
Endpoint represents the mocked route and can have one or more responses.
func GetEndpointsFromFile ¶
GetEndpointsFromFile parses the *.http file(s).
func GetEndpointsFromReader ¶
GetEndpointsFromReader parses a reader from <stdin> or similar
func (*Endpoint) Handle ¶
func (e *Endpoint) Handle() http.HandlerFunc
Handle returns a HTTP handler method for the given endpoint.
Click to show internal directories.
Click to hide internal directories.