hypertext 0.0.0

  • README.md
  • Installing
  • Versions
  • 2


version 0.0.0 build status

Alternative HTTP protocol library for Dart. The main difference here is that the developer gets a lot more freedom than with the dart:io implementation.

HTTP/2 support will come in the future.

Much of this library will work cross-platform, save for the Server class, as it depends on the dart:io ServerSocket class.


This package only exists for the case in which the current dart:io HTTP server API's are removed, say in Dart 2.0.0.

I doubt this will ever happen, but if it does, frameworks like Angel, won't suddenly explode.

Also, hypertext is really useful for, say, writing a proxy, because requests and responses can instantly be exported toHttp(). Writing reverse proxies with Dart for me has been cumbersome so far.

Missing Features

  • Cookies
  • WebSockets (although that would likely be another package, which would connect to web_socket_channel)

The following are deliberately left out:

  • Sessions

Features and bugs

Please file feature requests and bugs at the issue tracker.



  • Initial version, created by Stagehand

Use this package as a library

1. Depend on it

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

  hypertext: ^0.0.0

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:hypertext/hypertext.dart';
Version Uploaded Documentation Archive
0.0.0 Jan 11, 2017 Go to the documentation of hypertext 0.0.0 Download hypertext 0.0.0 archive
1.0.0-alpha Mar 10, 2017 Go to the documentation of hypertext 1.0.0-alpha Download hypertext 1.0.0-alpha archive
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 Aug 11, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.11.8


Detected platforms: Flutter, other

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

Issues and suggestions

Fix lib/src/http/server.dart.

Analysis of lib/src/http/server.dart failed with 6 errors, 1 hint, including:

line 28 col 23: Default values of an optional parameter must be constant.

line 28 col 23: Undefined name 'UTF8'.

line 32 col 27: Default values of an optional parameter must be constant.

line 32 col 27: Undefined name 'UTF8'.

line 41 col 31: Default values of an optional parameter must be constant.

Fix lib/src/http/parser.dart.

Analysis of lib/src/http/parser.dart failed with 3 errors:

line 13 col 7: Missing concrete implementation of 'StreamTransformer.cast'.

line 17 col 26: Default values of an optional parameter must be constant.

line 17 col 26: Undefined name 'UTF8'.

Package is getting outdated.

The package was released 82 weeks ago.

The description is too short.

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

Package is pre-v1 release.

While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction of the API.

Maintain an example.

None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use hypertext.dart.

Use analysis_options.yaml.

Rename old .analysis_options file to analysis_options.yaml.

Read more about the setup of analysis-options.yaml.

Fix additional 4 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/http.dart (Run dartfmt to format lib/http.dart.)
  • lib/hypertext.dart (Run dartfmt to format lib/hypertext.dart.)
  • lib/src/http/http.dart (Run dartfmt to format lib/src/http/http.dart.)
  • lib/src/http/version.dart (1 hint)


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0
body_parser ^1.0.0-dev 1.1.1
http_parser ^3.0.0 3.1.3
string_scanner ^1.0.0 1.0.3
Transitive dependencies
charcode 1.1.2
collection 1.14.11
dart2_constant 1.0.2+dart2
http_server 0.9.8
mime 0.9.6+2
path 1.6.2
source_span 1.4.1
typed_data 1.1.6
Dev dependencies
angel_route ^1.0.0-dev
http ^0.11.0
test ^0.12.0