• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2022 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.google.android.libraries.mobiledatadownload.downloader;
17 
18 /** Network related constants. */
19 public final class Constants {
20 
Constants()21   private Constants() {}
22 
23   /** The HTTP {@code HEAD} request method name. */
24   public static final String HEAD_REQUEST_METHOD = "HEAD";
25 
26   /** The HTTP {@code ETag} header field name. This is used to detect content change. */
27   public static final String ETAG_HEADER = "ETag";
28 
29   /**
30    * The HTTP {@code If-None-Match} header field name. This is used to send ETag to server to detect
31    * content change.
32    */
33   public static final String IF_NONE_MATCH_HEADER = "If-None-Match";
34 
35   public static final int HTTP_RESPONSE_OK = 200;
36   public static final int HTTP_RESPONSE_NOT_MODIFIED = 304;
37   public static final int HTTP_RESPONSE_NOT_FOUND = 404;
38 }
39