commit | 124615d0614b38814970aa9638725d9d6b435268 | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@users.noreply.github.com> | Mon Sep 27 11:34:08 2021 -0700 |
committer | GitHub <noreply@github.com> | Mon Sep 27 11:34:08 2021 -0700 |
tree | afbe9363a2e7f4b8b63a842aea22fefd635c2b6d | |
parent | b118f762a133275c2717cd5edc830f741dcb96d9 [diff] |
Drop pkg:pedantic, prepare for v1.0.1 (#24)
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}'); }