http_server 0.9.8+1

  • Installing
  • Versions
  • 86

Utility classes for HTTP server

A set of high-level classes that, together with HttpServer, makes is easier to serve web content.

NOTE: This package only works for server-side or command-line Dart applications. In other words, if the app imports dart:io, it can use this package.

Features and bugs

Please file feature requests and bugs at the issue tracker.


  • Fix a Dart 2 type issue.


  • Updates to support Dart 2 constants.


  • Updates to support Dart 2.0 core library changes (wave 2.2). See issue 31847 for details.


  • Updated the secure networking code to the SDKs version 1.15 SecurityContext api


  • Updated the layout of package contents.


  • Removed the decoding of HTML entity values (in the form &#xxxxx;) for values when parsing multipart/form-post requests.


  • Fixed bugs in the handling of the Range header

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  http_server: ^0.9.8+1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:http_server/http_server.dart';
Version Uploaded Documentation Archive
0.9.8+1 Nov 5, 2018 Go to the documentation of http_server 0.9.8+1 Download http_server 0.9.8+1 archive
0.9.8 Jul 11, 2018 Go to the documentation of http_server 0.9.8 Download http_server 0.9.8 archive
0.9.7 Feb 2, 2018 Go to the documentation of http_server 0.9.7 Download http_server 0.9.7 archive
0.9.6 Aug 18, 2016 Go to the documentation of http_server 0.9.6 Download http_server 0.9.6 archive
0.9.5+1 Nov 24, 2014 Go to the documentation of http_server 0.9.5+1 Download http_server 0.9.5+1 archive
0.9.5 Nov 19, 2014 Go to the documentation of http_server 0.9.5 Download http_server 0.9.5 archive
0.9.4 Nov 17, 2014 Go to the documentation of http_server 0.9.4 Download http_server 0.9.4 archive
0.9.3 Jul 30, 2014 Go to the documentation of http_server 0.9.3 Download http_server 0.9.3 archive
0.9.2+3 Jul 24, 2014 Go to the documentation of http_server 0.9.2+3 Download http_server 0.9.2+3 archive
0.9.2+2 Jul 4, 2014 Go to the documentation of http_server 0.9.2+2 Download http_server 0.9.2+2 archive

All 55 versions...

Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Dec 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7


Detected platforms: Flutter, other

Primary library: package:http_server/http_server.dart with components: io.

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use http_server.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
mime >=0.9.0 <0.10.0 0.9.6+2
path >=0.9.0 <2.0.0 1.6.2
Dev dependencies
pedantic ^1.3.0
test ^1.2.0