mmazi / rescu

A lightweight json Rest client utility for JAX-RS
MIT License
65 stars 59 forks source link

How to get CB-BEFORE and CB-AFTER cursors from the response header for paginated requests #103

Closed alexachim90 closed 6 years ago

alexachim90 commented 6 years ago

Hi, As mentioned above, I am facing the issue of not being able to get the CB-BEFORE and CB-AFTER cursors from the response header for a paginated request. I have tried using @NameBinding to inject interceptors, but afterward I have noticed that there are only a few annotation supported. Is there any other solution to this?

Thanks!

mmazi commented 6 years ago

You are probably referring to this discussion?

It seems rescu could easily be adapted to support regular response model classes that implement HttpResponseAware -- I'll happily accept a pull request with adequate tests.

mmazi commented 6 years ago

Your result model classes can now implement HttpResponseAware to access the response headers.