HttpValidator typedef

HttpValidator = HttpContent Function(Uri reference, BaseResponse response)

A function to validate a HTTP response, and return HttpContent if success.

Should throw a HttpException if a response is not successul (ie. other than HTTP 200 OK - or other validation rules depending on the use case).


typedef HttpValidator = HttpContent Function(
  Uri reference,
  http.BaseResponse response,