headers property

Map<String, String> headers

Get custom HTTP headers.

Return HTTP connection headers with dynamic request ID.

Implementation

Map<String, String> get headers {
  _headers.update(
      "Client-DAAP-Request-ID", (dynamic val) => _requestId.toString(),
      ifAbsent: () => _requestId.toString());
  _requestId++;
  return _headers;
}