# shelf_proxy 1.0.5

A shelf handler for proxying HTTP requests to another server.




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add shelf_proxy
```
Published: 2026-04-23T18:46:50.188508Z
Expected archive SHA-256: 0c3a7b2b4c111cae8a6d9077701e0622c6013d38a780373ac359d6d45b3aa10b

Available in cache; verification: upstream_checksum
## Direct dependencies
- http: ^1.2.0
- path: ^1.8.0
- shelf: ^1.0.0

## Package README (untrusted upstream documentation)
[![pub package](https://img.shields.io/pub/v/shelf_proxy.svg)](https://pub.dev/packages/shelf_proxy)
[![package publisher](https://img.shields.io/pub/publisher/shelf_proxy.svg)](https://pub.dev/packages/shelf_proxy/publisher)

## Proxy for Shelf

`shelf_proxy` is a [Shelf][] handler that proxies requests to an external
server. It can be served directly and used as a proxy server, or it can be
mounted within a larger application to proxy only certain URLs.

[Shelf]: https://pub.dev/packages/shelf

```dart
import 'package:shelf/shelf_io.dart' as shelf_io;
import 'package:shelf_proxy/shelf_proxy.dart';

void main() async {
  var server = await shelf_io.serve(
    proxyHandler("https://dart.dev"),
    'localhost',
    8080,
  );

  print('Proxying at http://${server.address.host}:${server.port}');
}
```

## Changelog
## 1.0.5

* Correctly handle multiple `Cookie` headers in requests and `Set-Cookie`
  headers in responses.
* Require `package:http` `^1.2.0`.
* Require Dart `^3.3.0`.

## 1.0.4

* Require Dart `2.19`.
* Allow `package:http` v1.0.0

## 1.0.3

* Added package topics to the pubspec file.
* Require Dart `2.17`.

## 1.0.2

* Update the pubspec `repository` field.

## 1.0.1

* Drop dependency on `package:pedantic`.
* Require Dart `2.14`.

## 1.0.0

* Require Dart `2.12`.
* Enable null safety.
* Removed deprecated `createProxyHandler`.

## 0.1.0+7

* Added example.
* Fixed links in README.

## 0.1.0+6

* Support the latest version of `package:http`.

## 0.1.0+5

* Support Dart 2.

## 0.1.0+4

* Internal changes only.

## 0.1.0+3

* Support version `0.7.0` of `shelf`.

## 0.1.0+2

* Support version `0.6.0` of `shelf`.

## 0.1.0+1

* Added `drone.io` badge to `README.md`.

## 0.1.0

* `createProxyHandler` (new deprecated) is replaced with `proxyHandler`.

* Updated to be compatible with RFC 2616 Proxy specification.

## 0.0.2

* Updated `README.md` and doc comments on `createProxyHandler`.

* Added an example.

## 0.0.1

* First release.







 
