pub-azs pub azs
صفحه اصلیراهنمای اتصالپکیج ها

w_transport 5.4.1

Published Aug 12, 2025
SDKdartflutter
Platformandroidioswindowslinuxmacosweb

Transport library for sending HTTP requests and opening WebSockets. Platform-independent with builtin support for browser and Dart VM (even supports SockJS). Includes mock utilities for testing.

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
3
likes
115
points
237.92K
downloads

Metadata

Transport library for sending HTTP requests and opening WebSockets. Platform-independent with builtin support for browser and Dart VM (even supports SockJS). Includes mock utilities for testing.

Dependencies

flurihttp_parsermetamimequiversockjs_client_wrappercollection

Founded by Parham A.Z.S.

parham linkedin