Skip to content

Home

Development

IDEs

JAR services

API Explorer

ProxyRequestFunctions

The ProxyRequest class contains functions for proxying HTTP requests to a different server. Below are different ways demonstrating the use of the functions of this class:

Sample service showing how to use the `ProxyRequest` functions

1
2
3
4
@RequestMapping('/legacy/**') 
void callLegacyApi(HttpServletRequest request, HttpServletResponse response) {
    request.proxy(response, 'http://www.legacy.api/sub/path')
}