-
Notifications
You must be signed in to change notification settings - Fork 85
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
add proxy #473
base: main
Are you sure you want to change the base?
add proxy #473
Conversation
Is this something somebody still wants to try and push forward...? |
@SethTisue I completely forgot I wrote this. Lemme review it for sanity :-) |
Okay updated |
import java.util.Objects; | ||
import java.util.Optional; | ||
|
||
public class DefaultWSProxyServer implements WSProxyServer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a proxy server implementation
@@ -243,6 +240,15 @@ public StandaloneAhcWSRequest setContentType(String contentType) { | |||
return addHeader(CONTENT_TYPE.toString(), contentType); | |||
} | |||
|
|||
@Override | |||
public StandaloneWSRequest setProxyServer(WSProxyServer proxyServer) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set proxy server
return builder.build(); | ||
} | ||
|
||
private ProxyServer createProxy(WSProxyServer proxyServer) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create java proxy
* @param proxyServer the proxy server | ||
* @return the modified WSRequest | ||
*/ | ||
StandaloneWSRequest setProxyServer(WSProxyServer proxyServer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add setProxyServer
import java.util.List; | ||
import java.util.Optional; | ||
|
||
public interface WSProxyServer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WSProxyServer interface
Yay! Now, who wants to review this...? |
I don't even know who's committer on play-ws now. |
(I'd also be willing to just shrug and hit "merge" myself if no reviewers appear and if you believe the change to be safe.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An empty comment so that this will not be part of my "review requests" list.
Sorry for the noise.
@wsargent can you please rebase? Thanks! |
9671441
to
67148c0
Compare
@mkurz done! |
@wsargent CI complaining:
Thanks! |
@Mergifyio rebase |
✅ Branch has been successfully rebased |
Fixes
Purpose