Drop pkg:pedantic, prepare for v1.0.1 (#24)
5 files changed
tree: afbe9363a2e7f4b8b63a842aea22fefd635c2b6d
- .github/
- example/
- lib/
- test/
- .gitignore
- analysis_options.yaml
- CHANGELOG.md
- LICENSE
- pubspec.yaml
- README.md
README.md
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.
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}');
}