http 0.12.1
http: ^0.12.1 copied to clipboard
A composable, multi-platform, Future-based API for HTTP requests.
0.12.1 #
- Add
IOStreamedResponsewhich includes the ability to detach the socket. When sending a request with anIOClientthe response will be anIOStreamedResponse. - Remove dependency on
package:async.
0.12.0+4 #
- Fix a bug setting the
'content-type'header inMultipartRequest.
0.12.0+3 #
- Documentation fixes.
0.12.0+2 #
- Documentation fixes.
0.12.0 #
New Features #
- The regular
Clientfactory constructor is now usable anywhere thatdart:ioordart:htmlare available, and will give you anIoClientorBrowserClientrespectively. - The
package:http/http.dartimport is now safe to use on the web (or anywhere that eitherdart:ioordart:htmlare available).
Breaking Changes #
- In order to use or reference the
IoClientdirectly, you will need to import the newpackage:http/io_client.dartimport. This is typically only necessary if you are passing a customHttpClientinstance to the constructor, in which case you are already giving up support for web.
0.11.3+17 #
- Use new Dart 2 constant names. This branch is only for allowing existing code to keep running under Dart 2.
0.11.3+16 #
- Stop depending on the
stack_tracepackage.
0.11.3+15 #
- Declare support for
async2.0.0.
0.11.3+14 #
- Remove single quote ("'" - ASCII 39) from boundary characters. Causes issues with Google Cloud Storage.
0.11.3+13 #
- remove boundary characters that package:http_parser cannot parse.
0.11.3+12 #
- Don't quote the boundary header for
MultipartRequest. This is more compatible with server quirks.
0.11.3+11 #
- Fix the SDK constraint to only include SDK versions that support importing
dart:ioeverywhere.
0.11.3+10 #
- Stop using
dart:mirrors.
0.11.3+9 #
- Remove an extra newline in multipart chunks.
0.11.3+8 #
- Properly specify
Content-Transfer-Encodingfor multipart chunks.
0.11.3+7 #
- Declare compatibility with
http_parser3.0.0.
0.11.3+6 #
- Fix one more strong mode warning in
http/testing.dart.
0.11.3+5 #
- Fix some lingering strong mode warnings.
0.11.3+4 #
- Fix all strong mode warnings.
0.11.3+3 #
- Support
http_parser2.0.0.
0.11.3+2 #
-
Require Dart SDK >= 1.9.0
-
Eliminate many uses of
Chain.trackfrom thestack_tracepackage.
0.11.3+1 #
- Support
http_parser1.0.0.
0.11.3 #
- Add a
Client.patchshortcut method and a matching top-levelpatchmethod.
0.11.2 #
- Add a
BrowserClient.withCredentialsproperty.
0.11.1+3 #
- Properly namespace an internal library name.
0.11.1+2 #
- Widen the version constraint on
unittest.
0.11.1+1 #
- Widen the version constraint for
stack_trace.
0.11.1 #
- Expose the
IOClientclass which wraps adart:ioHttpClient.
0.11.0+1 #
- Fix a bug in handling errors in decoding XMLHttpRequest responses for
BrowserClient.
0.11.0 #
-
The package no longer depends on
dart:io. TheBrowserClientclass inpackage:http/browser_client.dartcan now be used to make requests on the browser. -
Change
MultipartFile.contentTypefromdart:io'sContentTypetype tohttp_parser'sMediaTypetype. -
Exceptions are now of type
ClientExceptionrather thandart:io'sHttpException.
0.10.0 #
-
Make
BaseRequest.contentLengthandBaseResponse.contentLengthusenullto indicate an unknown content length rather than -1. -
The
contentLengthparameter tonew BaseResponseis now named rather than positional. -
Make request headers case-insensitive.
-
Make
MultipartRequestmore closely adhere to browsers' encoding conventions.