Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandleFunc ¶
type HandleFunc func(requests []*HttpRequest, http http.ResponseWriter, r *http.Request)
type HttpHandler ¶
type HttpHandler struct {
// contains filtered or unexported fields
}
func (*HttpHandler) ServeHTTP ¶
func (h *HttpHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request)
type HttpRequest ¶
func (*HttpRequest) GetTime ¶
func (r *HttpRequest) GetTime() time.Time
type TestServer ¶
func NewServer ¶
func NewServer(h HandleFunc) *TestServer
func NewServerWithStaticResponse ¶
func NewServerWithStaticResponse(response string) *TestServer
func (*TestServer) Requests ¶
func (f *TestServer) Requests() []*HttpRequest
Click to show internal directories.
Click to hide internal directories.