Table of Contents Transport Platform Configuration: Browser/Dart VM Basics HTTP Sending a request, receiving a response, and handling a failure Types of requests (JSON, form, multipart) Using an HttpClient WebSocket Establishing a connection Sending and receiving data Listening for completion/close/done Advanced Usage HTTP Sending secure cookies (withCredentials) Encoding, content-type, and content-length Canceling and timing-out requests Streaming requests and responses Intercepting requests and responses Automatic request retrying WebSocket Using SockJS Testing/Mocks Installing/uninstalling the transport mocks HTTP Mock responses Expecting requests (one-time use) Request handlers (many-time use) WebSocket Creating and controlling a mock WebSocket server Expecting WebSocket connections (one-time use) WebSocket connections handlers (many-time use) Advanced: selective mocking with fallback to a real transport platform Changelog Upgrading to v3.0.0 API docs