-
Notifications
You must be signed in to change notification settings - Fork 1
Headers
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';
}
}