Skip to content
Marlon Carvalho edited this page Jul 20, 2015 · 2 revisions

Would you like to get access to the request headers? Just add a parameter of the type Map and name it headers.

@API(path: 'beers')
class BeerAPI {

    @GET()
    String get(Map headers) {
        headers['X-MyHeader'] = 'header';
    }

}
Clone this wiki locally