ReadHeader method

void ReadHeader(
  1. WebHeaderCollection responseHeaders
)
Read Photo response headers The response headers

Implementation

void ReadHeader(WebHeaderCollection responseHeaders) {
  // Parse out the ETag, trimming the quotes
  String? etag = responseHeaders[HttpHeaders.etagHeader];
  if (etag != null) {
    etag = etag.replaceAll("\"", "");
    if (etag.isNotEmpty) {
      Results.EntityTag = etag;
    }
  }

  // Parse the Expires tag, leaving it in UTC
  String? expires = responseHeaders[HttpHeaders.expiresHeader];
  if (expires != null && expires.isNotEmpty) {
    Results.Expires = _ParseHttpDate(expires);
  }
}