-
Notifications
You must be signed in to change notification settings - Fork 786
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
HTTP Request Manipulation via REST API #57
Comments
Think this is already allowed. via the addRequestInterceptor() method which allows you to pass in your own HttpRequestInterceptor (from the apache HttpClient project: org.apache.http.HttpRequestInterceptor). Exposing this object allows you to manipulate every request or response body's Http headers. You can even get the entity's content via the response object. Example: ProxyServer proxyServer = new ProxyServer(9101); proxyServer.addRequestInterceptor(new HttpRequestInterceptor() {
public void process(HttpResponse response, HttpContext context)throws org.apache.http.HttpException, IOException {
|
Just updated the request title, I was asking about replacing content through "Rest API", not Java API |
…hantom-js-fetcher Improved auto-fetch of PhantomJS if absent
What's the timeline for this http request manipulation Rest API?
Note: I am looking for the feature of manipulating HTTP response body before a page renders in browsers.
The text was updated successfully, but these errors were encountered: