Documentation ¶
Overview ¶
Package httpx provides helper functions for making HTTP requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockServer ¶
MockServer creates a mock HTTP server and installs its client instead of the default one. Serves responses from the file system instead of remote calls. Should be used for testing purposes only.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient serves responses from the file system instead of remote calls. Should be used for testing purposes only.
func Mock ¶
func Mock(path ...string) *MockClient
Mock creates a new MockClient and installs it instead of the default one.
Click to show internal directories.
Click to hide internal directories.