http 0.10.0

http

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

This package contains a set of high-level functions and classes that make it easy to consume HTTP resources.

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

Using

Please see the API docs for explanations and examples.

Filing issues

Please file issues for the http package at http://dartbug.com/new.

0.10.0

  • Make BaseRequest.contentLength and BaseResponse.contentLength use null to indicate an unknown content length rather than -1.

  • The contentLength parameter to new BaseResponse is now named rather than positional.

  • Make request headers case-insensitive.

1. Depend on it

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

dependencies:
  http: ">=0.10.0 <0.11.0"

If your package is an application package you should use any as the version constraint.

2. Install it

If you're using the Dart Editor, choose:

Menu > Tools > Pub Install

Or if you want to install from the command line, run:

$ pub install

3. Import it

Now in your Dart code, you can use:

import 'package:http/http.dart';
Version Uploaded Archive
0.10.0 Mar 31, 2014 Download http 0.10.0 archive
0.9.2+3 Jan 16, 2014 Download http 0.9.2+3 archive
0.9.2+1 Jan 13, 2014 Download http 0.9.2+1 archive
0.9.2 Dec 10, 2013 Download http 0.9.2 archive
0.9.1 Dec 09, 2013 Download http 0.9.1 archive
0.9.0 Nov 06, 2013 Download http 0.9.0 archive
0.8.10+4 Nov 05, 2013 Download http 0.8.10+4 archive
0.8.10+3 Nov 04, 2013 Download http 0.8.10+3 archive
0.8.10 Nov 01, 2013 Download http 0.8.10 archive
0.8.9 Oct 31, 2013 Download http 0.8.9 archive

All 79 versions...

About

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

Author

Email misc@dartlang.org Dart Team

Homepage

https://pub.dartlang.org/packages/http

Uploader

dgrove@google.com
jmesserly@google.com
sigmund@google.com
nweiz@google.com
kevmoo@google.com

Share