Support for configuring the browser `fetch` credentials mode in `BrowserClient`. (#1937) * add enum for omit value * add changelog and new version * Add requestCredentials parameter to BrowserClient to support full fetch credentials modes - Introduce `RequestCredentials` enum (`omit`, `same-origin`, `include`). - Deprecate `withCredentials` getter and setter while maintaining full backwards compatibility. - Update README.md with instructions on how to use the new parameter. - Add unit tests verifying correct constructor initialization and fallback behaviors. * - Reverted README.md changes; the feature is now documented exclusively in the class/constructor Dartdoc. - Cut down the constructor documentation to remove references to historical behavior. - Cleaned up the changelog entry by moving the note under the existing `1.6.1-wip` section and reverted the pubspec version bump. - Removed the unnecessary browser unit/integration tests. * Update pkgs/http/CHANGELOG.md Co-authored-by: Brian Quinlan <bquinlan@google.com> * refactor(http): encapsulate fetch credentials mode and clean up BrowserClient API - Move `_requestCredentials` field declaration above the constructor to match style guide. - Remove the public `requestCredentials` getter to keep the new feature internal. - Update Dartdoc for the deprecated `withCredentials` getter to reference the constructor parameter instead of the private field. - Revert unintended version bumps, changelog additions, and README notes. - Remove browser integration tests per maintainer request. * style: wrap long line in browser_client documentation --------- Co-authored-by: Brian Quinlan <bquinlan@google.com>
A composable, Future-based library for making HTTP requests.
package:http contains a set of high-level functions and classes that make it easy to consume HTTP resources. It's multi-platform, and supports mobile, desktop, and the browser.
| Package | Description | Version |
|---|---|---|
| cronet_http | An Android Flutter plugin that provides access to the Cronet HTTP client. | |
| cupertino_http | A macOS/iOS Flutter plugin that provides access to the Foundation URL Loading System. | |
| flutter_http_example | An Flutter app that demonstrates how to configure and use package:http. | — |
| http | A composable, multi-platform, Future-based API for HTTP requests. | |
| http2 | A HTTP/2 implementation in Dart. | |
| http_client_conformance_tests | A library that tests whether implementations of package:http's Client class behave as expected. | |
| http_multi_server | A dart:io HttpServer wrapper that handles requests from multiple servers. | |
| http_parser | A platform-independent package for parsing and serializing HTTP formats. | |
| http_profile | A library used by HTTP client authors to integrate with the DevTools Network View. | |
| ok_http | An Android Flutter plugin that provides access to the OkHttp HTTP client and the OkHttp WebSocket API. | |
| web_socket | Any easy-to-use library for communicating with WebSockets that has multiple implementations. | |
| web_socket_channel | StreamChannel wrappers for WebSockets. Provides a cross-platform WebSocketChannel API. | |
| web_socket_conformance_tests | A library that tests whether implementations of package:web_socket's WebSocket class behave as expected. |
If you'd like to contribute to any of these packages, see the Contributing Guide.