Closed vadymmarkov closed 8 years ago
@zenangst @RamonGilabert @onmyway133 Network request returns a custom Response type which is a subclass of Promise with some additional helper functions, for example validations. Right now you are able to validate status codes and content type:
Response
Promise
networking.request(.GET, NSURL(string: "http://hyper.no")!) .validate(statusCodes: [200]) .validate(contentTypes: ["application/json"])
@vadymmarkov
@zenangst @RamonGilabert @onmyway133 Network request returns a custom
Response
type which is a subclass ofPromise
with some additional helper functions, for example validations. Right now you are able to validate status codes and content type: