gojek/wrest

Response code checkers: ok?, redirect?, created? etc.

jasim opened this issue · 1 comments

Create a mixin that can be used in the Response class of any HTTP adapter, roughly:

def response.ok?
  self.code == 200
end

Closed by f877569 - Add Response Code checkers to response objects