| commit | 2552e2c2b928ef0476a2cccc43153656625fee7e | [log] [tgz] |
|---|---|---|
| author | Kevin Moore <kevmoo@users.noreply.github.com> | Thu May 05 09:54:44 2022 -0700 |
| committer | GitHub <noreply@github.com> | Thu May 05 09:54:44 2022 -0700 |
| tree | af54375ec8fa8f93be903363f8b46a3afae41d2f | |
| parent | 124615d0614b38814970aa9638725d9d6b435268 [diff] |
Update test-package.yml
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}'); }