The Protevus Platform: Unified Full-Stack Development https://protevus.com
Find a file
thosakwe 487e825f8d fix
2017-07-23 23:33:31 -04:00
.idea 1.0.8 2017-06-20 15:31:35 -04:00
.vscode 1.0.8 2017-06-20 15:31:35 -04:00
example 1.0.8 2017-06-20 15:31:35 -04:00
lib fix 2017-07-23 23:33:31 -04:00
test fix 2017-07-23 23:33:31 -04:00
.analysis-options 1.0.3 2017-04-22 14:46:00 -04:00
.gitignore Works 2016-11-23 17:03:06 -05:00
.travis.yml Works 2016-11-23 17:03:06 -05:00
LICENSE Initial commit 2016-11-09 23:28:11 -05:00
pubspec.yaml fix 2017-07-23 23:33:31 -04:00
README.md 1.0.8 2017-06-20 15:31:35 -04:00

angel_proxy

Pubbuild status

Angel middleware to forward requests to another server (i.e. pub serve).

import 'package:angel_proxy/angel_proxy.dart';

main() async {
  // ...
  
  // Forward requests instead of serving statically
  await app.configure(new ProxyLayer('localhost', 3000));
  
  // Or, use one for pub serve.
  //
  // This automatically deactivates itself if the app is
  // in production.
  await app.configure(new PubServeLayer());
}

If your app's storeOriginalBuffer is true, then request bodies will be forwarded as well, if they are not empty. This allows things like POST requests to function.