commit | 019479852c43490069abecf1a13676846c9bd710 | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@google.com> | Thu Jul 18 09:53:25 2019 -0700 |
committer | Kevin Moore <kevmoo@users.noreply.github.com> | Thu Jul 18 09:57:33 2019 -0700 |
tree | d041977b97d0340b8257b7d83c717311c4770cf2 | |
parent | fabc6a980412d34b1ce3f6b1e2e683816b3c7fe7 [diff] |
Prepare for 0.1.0+7
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}'); }