w_transport_mock library

Classes

FinalizedRequest
A finalized, read-only representation of a request.
MockBaseRequest
MockClient
A mock implementation of an HTTP client. Factory methods simply return the mock implementations of each request. Since the mock request implementations don't ever actually send an HTTP request, this client doesn't need to do anything else.
MockFormRequest
MockHttpHandler
MockJsonRequest
MockPlainTextRequest
MockResponse
MockStreamedRequest
MockStreamedResponse
MockTransports
MockWebSocketHandler
MockWSocket

Functions

configureWTransportForTest() → void
Configure w_transport for use in tests, allowing you to easily mock out the behavior of the w_transport classes.