Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Suave as a proxy #636

Closed
ckpearson opened this issue Aug 2, 2017 · 3 comments
Closed

Using Suave as a proxy #636

ckpearson opened this issue Aug 2, 2017 · 3 comments

Comments

@ckpearson
Copy link

Hi,

I'm trying to work out how to use Suave as a proxy, I notice that proxy.fs was removed, and I'm trying to reimplement it, but there's a lot of stuff no longer available (e.g. response_f).

Is there any built in way of setting up proxying, if not, how would I go about getting this to work?

@haf
Copy link
Contributor

haf commented Aug 7, 2017

response_f is probably just named response now. https://github.com/SuaveIO/suave/blob/master/src/Suave/Combinators.fs#L11

Proxy.fs can be re-added and updated; the APIs have only changed in names (like the above), not in semantics. We need someone who can help us maintain the proxy, too. Bonus points for a TCP/state-machine implementation, OK-to-merge for a WebRequest-variant.

@njlr
Copy link
Contributor

njlr commented Sep 10, 2020

Can we close this now following #746 ?

In case anyone stumbles on this:

open System
open Suave
open Suave.Proxy

let myProxy : WebPart = proxy (Uri "http://localhost:3000")

@ademar
Copy link
Member

ademar commented Sep 11, 2020

Yeap, thanks @njlr

@ademar ademar closed this as completed Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants