MCPcopy Index your code
hub / github.com/gavv/httpexpect / RequestFactory

Interface RequestFactory

expect.go:286–288  ·  view source on GitHub ↗

RequestFactory is used to create all http.Request objects. aetest.Instance from the Google App Engine implements this interface.

Source from the content-addressed store, hash-verified

284// RequestFactory is used to create all http.Request objects.
285// aetest.Instance from the Google App Engine implements this interface.
286type RequestFactory interface {
287 NewRequest(method, url string, body io.Reader) (*http.Request, error)
288}
289
290// RequestFactoryFunc is an adapter that allows a function
291// to be used as the RequestFactory

Callers 8

NewRequestMethod · 0.65
TestBinder_BasicFunction · 0.65
TestBinder_TLSFunction · 0.65
TestBinder_ChunkedFunction · 0.65
TestFastBinder_BasicFunction · 0.65
TestFastBinder_ProtocolFunction · 0.65
TestFastBinder_TLSFunction · 0.65

Implementers 2

mockRequestFactorymocks_test.go
DefaultRequestFactoryrequest_factory.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…