PackageTrack
Sign in Get early access

http

A composable, multi-platform, Future-based API for HTTP requests.

1.6.0 1.0M downloads/mo #1 most downloaded on pub.dev dart-lang/http

What this package is like to depend on

Last release 9 months ago

10 Nov 2025

Ships fairly regularly

a new release about every 2 months

Some releases are documented

notes for 48 of 127 stable releases

Nothing withdrawn

no release was ever pulled

14 years old

130 releases · first in 2012

1 release in the last 12 months

see the full history below

Release timeline

130 releases · Nov 2012 to Nov 2025
2013 2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 60 of 130
  1. 1.6.0 10 Nov 2025
    Release notes
    • Breaking Change the behavior of Request.body so that a charset parameter is only added for text and XML media types. This brings the behavior of package:http in line with RFC-8259.
    • On the web, fix cancellations for StreamSubscriptions of response bodies waiting for the next chunk.
    • Export MediaType from package:http_parser.
    • Added a section on testing to README.md.
    Open source →
  2. 1.5.0 07 Aug 2025
    Release notes
    • Fixed a bug in IOClient where the HttpClient's response stream was
      cancelled after the response stream was completed.
    • Added support for aborting requests before they complete.
    • Clarify that some header names may not be sent/received.
    Open source →
    Release notes
    • Fixed a bug in IOClient where the HttpClient's response stream was cancelled after the response stream was completed.
    • Added support for aborting requests before they complete.
    • Clarify that some header names may not be sent/received.
    Open source →
  3. 1.5.0-beta.2 15 Jul 2025 pre-release

    Nothing published for this version

  4. 1.5.0-beta 08 Jul 2025 pre-release

    Nothing published for this version

  5. 1.4.0 06 May 2025
    Release notes
    • Fixed default encoding for application/json without a charset to use utf8 instead of latin1, ensuring proper JSON decoding.
    • Avoid references to window in BrowserClient, restoring support for web workers and NodeJS.
    Open source →
  6. 1.3.0 21 Jan 2025
    Release notes
    • Fixed unintended HTML tags in doc comments.
    • Switched BrowserClient to use Fetch API instead of XMLHttpRequest.
    Open source →
    Release notes
    • Fixed unintended HTML tags in doc comments.
    • Switched BrowserClient to use Fetch API instead of XMLHttpRequest.
    Open source →
  7. 1.2.2 16 Jul 2024
    Release notes
    • Require package web: '>=0.5.0 <2.0.0'.
    Open source →
  8. 1.2.1 15 Feb 2024
    Release notes
    • Require Dart ^3.3
    • Require package:web ^0.5.0.
    Open source →
  9. 1.2.0 16 Jan 2024
    Release notes
    • Add MockClient.pngResponse, which makes it easier to fake image responses.
    • Added the ability to fetch the URL of the response through BaseResponseWithUrl.
    • Add the ability to get headers as a Map<String, List<String> to BaseResponse.
    Open source →
  10. 1.1.2 27 Nov 2023
    Release notes
    • Allow web: '>=0.3.0 <0.5.0'.
    Open source →
  11. 1.1.1 21 Nov 2023
    Release notes
    • BrowserClient throws ClientException when the 'Content-Length' header is invalid.
    • IOClient trims trailing whitespace on header values.
    • Require Dart 3.2
    • Browser: support Wasm by using package:web.
    Open source →
  12. 1.1.0 26 Jun 2023
    Release notes
    • Add better error messages for SocketExceptions when using IOClient.
    • Make StreamedRequest.sink a StreamSink. This makes request.sink.close() return a Future instead of void, but the returned future should not be awaited. The Future returned from sink.close() may only complete after the request has been sent.
    Open source →
  13. 1.0.0 22 May 2023
    Release notes
    • First non-experimental release; no semantic changes from version 0.1.6.
    Open source →
    Release notes
    • Requires Dart 3.0 or later.
    • Add base, final, and interface modifiers to some classes.
    Open source →
  14. 0.13.6 01 May 2023
    Release notes
    • BrowserClient throws an exception if send is called after close.
    • If no_default_http_client=true is set in the environment then disk usage is reduced in some circumstances.
    • Require Dart 2.19
    Open source →
  15. 0.13.5 03 Aug 2022
    Release notes
    • Allow async callbacks in RetryClient.
    • In MockHttpClient use the callback returned Response.request instead of the argument value to give more control to the callback. This may be breaking for callbacks which return incomplete Responses and relied on the default.
    Open source →
  16. 0.13.4 04 Oct 2021
    Release notes
    • Throw a more useful error when a client is used after it has been closed.
    • Require Dart 2.14.
    Open source →
  17. 0.13.3 03 May 2021
    Release notes
    • Validate that the method parameter of BaseRequest is a valid "token".
    Open source →
  18. 0.13.2 28 Apr 2021
    Release notes
    • Add package:http/retry.dart with RetryClient. This is the same implementation as package:http_retry which will be discontinued.
    Open source →
  19. 0.13.1 19 Mar 2021
    Release notes
    • Fix code samples in README to pass a Uri instance.
    Open source →
  20. 0.13.0 05 Feb 2021
    Release notes
    • Migrate to null safety.
    • Add const constructor to ByteStream.
    • Migrate BrowserClient from blob to arraybuffer.
    • Breaking All APIs which previously allowed a String or Uri to be passed now require a Uri.
    • Breaking Added a body and encoding argument to Client.delete. This is only breaking for implementations which override that method.
    Open source →
  21. 0.13.0-nullsafety.0 29 Jan 2021 pre-release

    Nothing published for this version

  22. 0.12.2 16 Jul 2020
    Release notes
    • Fix error handler callback type for response stream errors to avoid masking root causes.
    Open source →
  23. 0.12.1 27 Apr 2020
    Release notes
    • Add IOStreamedResponse which includes the ability to detach the socket. When sending a request with an IOClient the response will be an IOStreamedResponse.
    • Remove dependency on package:async.
    Open source →
  24. 0.12.0 18 Sep 2018
    Release notes

    New Features

    • The regular Client factory constructor is now usable anywhere that dart:io or dart:html are available, and will give you an IoClient or BrowserClient respectively.
    • The package:http/http.dart import is now safe to use on the web (or anywhere that either dart:io or dart:html are available).

    Breaking Changes

    • In order to use or reference the IoClient directly, you will need to import the new package:http/io_client.dart import. This is typically only necessary if you are passing a custom HttpClient instance to the constructor, in which case you are already giving up support for web.
    Open source →
  25. 0.12.0+1 08 Jan 2019

    Nothing published for this version

  26. 0.12.0+2 03 Apr 2019
    Release notes
    • Documentation fixes.
    Open source →
  27. 0.12.0+3 26 Dec 2019
    Release notes
    • Documentation fixes.
    Open source →
  28. 0.12.0+4 07 Jan 2020
    Release notes
    • Fix a bug setting the 'content-type' header in MultipartRequest.
    Open source →
  29. 0.11.3 20 Jul 2015
    Release notes
    • Add a Client.patch shortcut method and a matching top-level patch method.
    Open source →
  30. 0.11.3+1 26 Aug 2015
    Release notes
    • Support http_parser 1.0.0.
    Open source →
  31. 0.11.3+2 28 Aug 2015
    Release notes
    • Require Dart SDK >= 1.9.0

    • Eliminate many uses of Chain.track from the stack_trace package.

    Open source →
  32. 0.11.3+3 14 Dec 2015
    Release notes
    • Support http_parser 2.0.0.
    Open source →
  33. 0.11.3+4 25 Apr 2016
    Release notes
    • Fix all strong mode warnings.
    Open source →
  34. 0.11.3+5 26 Apr 2016
    Release notes
    • Fix some lingering strong mode warnings.
    Open source →
  35. 0.11.3+6 04 May 2016
    Release notes
    • Fix one more strong mode warning in http/testing.dart.
    Open source →
  36. 0.11.3+7 05 May 2016
    Release notes
    • Declare compatibility with http_parser 3.0.0.
    Open source →
  37. 0.11.3+8 06 Jul 2016
    Release notes
    • Properly specify Content-Transfer-Encoding for multipart chunks.
    Open source →
  38. 0.11.3+9 19 Jul 2016
    Release notes
    • Remove an extra newline in multipart chunks.
    Open source →
  39. 0.11.3+11 06 Mar 2017
    Release notes
    • Fix the SDK constraint to only include SDK versions that support importing dart:io everywhere.
    Open source →
  40. 0.11.3+12 07 Mar 2017
    Release notes
    • Don't quote the boundary header for MultipartRequest. This is more compatible with server quirks.
    Open source →
  41. 0.11.3+13 30 Mar 2017
    Release notes
    • remove boundary characters that package:http_parser cannot parse.
    Open source →
  42. 0.11.3+14 20 Jul 2017
    Release notes
    • Remove single quote ("'" - ASCII 39) from boundary characters. Causes issues with Google Cloud Storage.
    Open source →
  43. 0.11.3+15 27 Sep 2017
    Release notes
    • Declare support for async 2.0.0.
    Open source →
  44. 0.11.3+16 13 Oct 2017
    Release notes
    • Stop depending on the stack_trace package.
    Open source →
  45. 0.11.3+17 09 Jul 2018
    Release notes
    • Use new Dart 2 constant names. This branch is only for allowing existing code to keep running under Dart 2.
    Open source →
  46. 0.11.2 06 Apr 2015
    Release notes
    • Add a BrowserClient.withCredentials property.
    Open source →
  47. 0.11.1 19 May 2014
    Release notes
    • Expose the IOClient class which wraps a dart:io HttpClient.
    Open source →
  48. 0.11.1+1 02 Jun 2014
    Release notes
    • Widen the version constraint for stack_trace.
    Open source →
  49. 0.11.1+3 21 Feb 2015
    Release notes
    • Properly namespace an internal library name.
    Open source →
  50. 0.11.0 05 May 2014
    Release notes
    • The package no longer depends on dart:io. The BrowserClient class in package:http/browser_client.dart can now be used to make requests on the browser.

    • Change MultipartFile.contentType from dart:io's ContentType type to http_parser's MediaType type.

    • Exceptions are now of type ClientException rather than dart:io's HttpException.

    Open source →
  51. 0.11.0+1 05 May 2014
    Release notes
    • Fix a bug in handling errors in decoding XMLHttpRequest responses for BrowserClient.
    Open source →
  52. 0.10.0 31 Mar 2014
    Release notes
    • 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.

    • Make MultipartRequest more closely adhere to browsers' encoding conventions.

    Open source →
  53. 0.9.2 10 Dec 2013

    Nothing published for this version

  54. 0.9.2+1 13 Jan 2014

    Nothing published for this version

  55. 0.9.2+3 16 Jan 2014

    Nothing published for this version

  56. 0.9.1 09 Dec 2013

    Nothing published for this version

  57. 0.9.0 06 Nov 2013

    Nothing published for this version

  58. 0.8.10 01 Nov 2013

    Nothing published for this version

  59. 0.8.10+3 04 Nov 2013

    Nothing published for this version

  60. 0.8.10+4 05 Nov 2013

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive