menu
mock_web_server package
documentation
mock_web_server.dart
mock_web_server.dart
dark_mode
light_mode
mock_web_server
library
Classes
Certificate
Represents a TLS certificate.
chain
and
key
are expected to be the bytes of the file to not add any dependency on how to read the file.
DefaultSecurityContext
MockResponse
Defines a set of values that the
MockWebServer
will return to a given request. Used with
MockWebServer.enqueueResponse(MockResponse response)
or a
Dispatcher
.
MockWebServer
A Web Server that can be scripted. Useful for Integration Tests, for demos, and to reproduce edge cases.
StoredRequest
Contains the info of a request received by the MockWebServer instance.
Typedefs
Dispatcher
=
Future
<
MockResponse
>
Function
(
HttpRequest
request
)
A
Dispatcher
is used to customize the responses of the
MockWebServer
further than using a queue.
mock_web_server package
documentation
mock_web_server.dart
mock_web_server
package
Libraries
mock_web_server
mock_web_server library