Skip to content

Overview

Concepts and Principles

Development

Overview

IDEs

API Explorer

Releases

Release Notes

TORO Integrate

Coder Studio

Coder Cloud

Bug Reports

Search

Proxy Request Method

Proxy Request methods are one-liners used to poxy a HTTP request to a different server. To view the javadocs go here

These are the different ways of using the proxy methods:

Using Gloovy Step

proxy request method using gloovy step

Using Invoke Code Step

proxy request method using invoke step

Using Gloovy Step

proxy request method using gloovy step on coder

Using Invoke Code Step

proxy request method using invoke step on coder

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