commit | 5d62bf56ef0118dcf8b7fb747d6a4490ffc7c308 | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@google.com> | Fri Feb 01 20:47:29 2019 -0800 |
committer | Kevin Moore <kevmoo@users.noreply.github.com> | Sat Feb 02 15:31:42 2019 -0800 |
tree | b9c595bb96cc24e0a045522b171596f4f79a096e | |
parent | 62835a2e7209a6c796d5a151831de976ac9dcdb1 [diff] |
update .gitignore
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}'); }); }