Search packages, repositories and app categories

Package detailsv3.2.3

http_multi_server

A dart:io HttpServer wrapper that handles requests from multiple servers.

AndroidiOSmacOSWindowsLinux
30-day downloads
15.2M
Likes
48
Pub points
160

Install package

flutter pub add http_multi_server

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Dart package that wraps dart:io's HttpServer to manage HTTP requests from multiple servers simultaneously. It simplifies server handling by providing a unified interface for listening on multiple ports or addresses, making it ideal for development tools and testing environments. The package is lightweight and integrates seamlessly with Dart’s built-in networking capabilities. It supports all major platforms including mobile, desktop, and server environments.

Use cases

  • Running multiple development servers
  • Testing web applications with different endpoints
  • Building CLI tools with embedded servers
  • Managing proxy or gateway services
  • Serving content from multiple ports

Key features

  • Supports multiple concurrent HTTP servers
  • Simple API for managing server instances
  • Cross-platform compatibility
  • Built on dart:io for performance
  • Ideal for development and testing workflows

Suitable for

  • Dart developers building backend tools
  • Test automation engineers
  • CLI application creators
  • Web framework maintainers
  • Development environment setup

Considerations

  • Not intended for production-grade web applications
  • Requires manual management of server lifecycle
  • Limited to HTTP protocol (no HTTPS out of the box)
  • Depends on dart:io, so not suitable for web browsers
  • Best used in controlled development scenarios

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Build Status

A composable, Future-based library for making HTTP requests.

package:http contains a set of high-level functions and classes that make it easy to consume HTTP resources. It's multi-platform, and supports mobile, desktop, and the browser.

Packages

Package Description Version
cronet_http An Android Flutter plugin that provides access to the Cronet HTTP client. pub package
cupertino_http A macOS/iOS Flutter plugin that provides access to the Foundation URL Loading System. pub package
flutter_http_example An Flutter app that demonstrates how to configure and use package:http. —
http A composable, multi-platform, Future-based API for HTTP requests. pub package
http2 A HTTP/2 implementation in Dart. pub package
http_client_conformance_tests A library that tests whether implementations of package:http's Client class behave as expected.
http_multi_server A dart:io HttpServer wrapper that handles requests from multiple servers. pub package
http_parser A platform-independent package for parsing and serializing HTTP formats. pub package
http_profile A library used by HTTP client authors to integrate with the DevTools Network View. pub package
ok_http An Android Flutter plugin that provides access to the OkHttp HTTP client and the OkHttp WebSocket API. pub package
web_socket Any easy-to-use library for communicating with WebSockets that has multiple implementations. pub package
web_socket_channel StreamChannel wrappers for WebSockets. Provides a cross-platform WebSocketChannel API. package issues
web_socket_conformance_tests A library that tests whether implementations of package:web_socket's WebSocket class behave as expected.

Contributing

If you'd like to contribute to any of these packages, see the Contributing Guide.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package