commit | 9d9389886af843bfac8c67c1d2f86c767f7800fb | [log] [tgz] |
---|---|---|
author | Nate Bosch <nbosch@google.com> | Thu Dec 05 14:58:33 2019 -0800 |
committer | Nate Bosch <nbosch@google.com> | Thu Dec 05 14:58:33 2019 -0800 |
tree | fed0f2b218128c61f12302c7e2f469043b9f5b36 | |
parent | 019479852c43490069abecf1a13676846c9bd710 [diff] |
Fix newly enforced package:pedantic lints - prefer_single_quotes
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}'); }