commit | ebae0980745fc8eae5b2fc35c0ea96e86b05627f | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@users.noreply.github.com> | Thu Oct 12 22:11:01 2017 -0700 |
committer | GitHub <noreply@github.com> | Thu Oct 12 22:11:01 2017 -0700 |
tree | ea2a25ab28bb9d27da8f24f000ea3190e706fb41 | |
parent | f50c7e7242682089a92782737b0b1cf395d3411f [diff] |
Format and update .gitginore (#4)
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}'); }); }