commit | 701956e23737b122e380de6ae85dd786c061e4d2 | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@google.com> | Fri Feb 01 20:58:14 2019 -0800 |
committer | Kevin Moore <kevmoo@users.noreply.github.com> | Sat Feb 02 15:31:42 2019 -0800 |
tree | 696c9aa012e54482bc30d28c58d6c80e866e1a77 | |
parent | 3790563dfb72ddf8f23373ad8d9a060919ef5490 [diff] |
enable some 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() { shelf_io.serve(proxyHandler("https://www.dartlang.org"), 'localhost', 8080) .then((server) { print('Proxying at http://${server.address.host}:${server.port}'); }); }