commit | 1770fccfc43fc855079de4b1dc199867f2204c62 | [log] [tgz] |
---|---|---|
author | Natalie Weizenbaum <nweiz@google.com> | Tue Jan 12 17:22:53 2016 -0800 |
committer | Natalie Weizenbaum <nweiz@google.com> | Tue Jan 12 17:22:53 2016 -0800 |
tree | ff5930116413b6fb855b7949c67216e86463eb17 | |
parent | 11ea7e3311638c5cbccc238838d0276547efbc00 [diff] |
Get rid of all the library tags. R=rnystrom@google.com Review URL: https://codereview.chromium.org//1577273004 .
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() { shelf_io.serve(proxyHandler("https://www.dartlang.org"), 'localhost', 8080) .then((server) { print('Proxying at http://${server.address.host}:${server.port}'); }); }