commit | cb6ebf27033ebd08eb50947733fbe1b0fa7b7c8c | [log] [tgz] |
---|---|---|
author | Nate Bosch <nbosch1@gmail.com> | Thu Dec 05 16:14:13 2019 -0800 |
committer | GitHub <noreply@github.com> | Thu Dec 05 16:14:13 2019 -0800 |
tree | fed0f2b218128c61f12302c7e2f469043b9f5b36 | |
parent | 019479852c43490069abecf1a13676846c9bd710 [diff] | |
parent | 9d9389886af843bfac8c67c1d2f86c767f7800fb [diff] |
Merge pull request #12 from dart-lang/new-pedantic-lints Fix newly enforced package:pedantic lints
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}'); }