コード例 #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;
 }
コード例 #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;
 }