Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sending additional request to server from proxy#1392

sshantha22 started this conversation inGeneral
Discussion options

Hi,
I have a use case where when the proxy receives a request from the client, the proxy will need to send its own request to the server to setup the context in the server before sending the client request to the server. Is there an example as to how I can do this?
Thanks

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

Hi@sshantha22 , you can trybefore_upstream_connection . Within this callback, make your own request to the server and only then returnrequest at the end of this function. By doing so, your proxy requests will not get processed, until you return from this callback.

You must be logged in to vote
1 reply
@sshantha22
Comment options

Thank you Abhinav Singh. I might need to make periodic requests once the connection has been established with the server within the context of a particular session and not as separate requests outside of the session. If I make the call in before_upstream_connection, would it be outside of the session? I was thinking of making the proxy initiated request in handle_client_request. Please let me know your thoughts. If you have an example, that would be very helpful.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
2 participants
@sshantha22@abhinavsingh

[8]ページ先頭

©2009-2025 Movatter.jp