Ejemplo n.º 1
0
 /**
  * We have already handled etag, and will add 'If-Match' & 'Range' value if it works.
  *
  * @see okhttp3.Headers.Builder#add(String, String)
  */
 public BaseDownloadTask addHeader(final String line) {
   checkAndCreateHeader();
   header.add(line);
   return this;
 }
Ejemplo n.º 2
0
 /**
  * We have already handled etag, and will add 'If-Match' & 'Range' value if it works.
  *
  * @see okhttp3.Headers.Builder#add(String, String)
  */
 public BaseDownloadTask addHeader(final String name, final String value) {
   checkAndCreateHeader();
   header.add(name, value);
   return this;
 }