// Path: extensions/net/src/main/java/com/google/android/agera/net/HttpRequestCompilerStates.java
// interface HTBodyHeaderFieldRedirectsCachesConnectionTimeoutReadTimeoutCompile
//     extends HTBody, HTHeaderFieldRedirectsCachesConnectionTimeoutReadTimeoutCompile {}
// 
// Path: extensions/net/src/main/java/com/google/android/agera/net/HttpRequestCompilerStates.java
// interface HTHeaderFieldRedirectsCachesConnectionTimeoutReadTimeoutCompile
//     extends HTCachesConnectionTimeoutReadTimeoutCompile {
// 
//   /**
//    * Adds a header field to the {@link HttpRequest}.
//    */
//   @NonNull
//   HTHeaderFieldRedirectsCachesConnectionTimeoutReadTimeoutCompile headerField(
//       @NonNull String name, @NonNull String value);
// 
// 
//   /**
//    * Turns off follow redirects.
//    */
//   @NonNull
//   HTCachesConnectionTimeoutReadTimeoutCompile noRedirects();
// }


import android.support.annotation.NonNull;
import com.google.android.agera.net.HttpRequestCompilerStates.HTBodyHeaderFieldRedirectsCachesConnectionTimeoutReadTimeoutCompile;
import com.google.android.agera.net.HttpRequestCompilerStates.HTHeaderFieldRedirectsCachesConnectionTimeoutReadTimeoutCompile;
/*
 * Copyright 2015 Google Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.android.agera.net;


/**
 * Creates instances of {@link HttpRequest}.
 */
public final class HttpRequests {

  /**
   * Starts the creation of a GET {@link HttpRequest}.
   */
  @NonNull
  @SuppressWarnings("unchecked")
  public static HTHeaderFieldRedirectsCachesConnectionTimeoutReadTimeoutCompile
  httpGetRequest(@NonNull final String url) {
    return new HttpRequestCompiler("GET", url);
  }

  /**
   * Starts the creation of a PUT {@link HttpRequest}.
   */
  @NonNull
  @SuppressWarnings("unchecked")
// Path: extensions/net/src/main/java/com/google/android/agera/net/HttpRequestCompilerStates.java
// interface HTBodyHeaderFieldRedirectsCachesConnectionTimeoutReadTimeoutCompile
//     extends HTBody, HTHeaderFieldRedirectsCachesConnectionTimeoutReadTimeoutCompile {}
// 
// Path: extensions/net/src/main/java/com/google/android/agera/net/HttpRequestCompilerStates.java
// interface HTHeaderFieldRedirectsCachesConnectionTimeoutReadTimeoutCompile
//     extends HTCachesConnectionTimeoutReadTimeoutCompile {
// 
//   /**
//    * Adds a header field to the {@link HttpRequest}.
//    */
//   @NonNull
//   HTHeaderFieldRedirectsCachesConnectionTimeoutReadTimeoutCompile headerField(
//       @NonNull String name, @NonNull String value);
// 
// 
//   /**
//    * Turns off follow redirects.
//    */
//   @NonNull
//   HTCachesConnectionTimeoutReadTimeoutCompile noRedirects();
// }


// Path: extensions/net/src/main/java/com/google/android/agera/net/HttpRequests.java
import android.support.annotation.NonNull;
import com.google.android.agera.net.HttpRequestCompilerStates.HTBodyHeaderFieldRedirectsCachesConnectionTimeoutReadTimeoutCompile;
import com.google.android.agera.net.HttpRequestCompilerStates.HTHeaderFieldRedirectsCachesConnectionTimeoutReadTimeoutCompile;

/*
 * Copyright 2015 Google Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.android.agera.net;


/**
 * Creates instances of {@link HttpRequest}.
 */
public final class HttpRequests {

  /**
   * Starts the creation of a GET {@link HttpRequest}.
   */
  @NonNull
  @SuppressWarnings("unchecked")
  public static HTHeaderFieldRedirectsCachesConnectionTimeoutReadTimeoutCompile
  httpGetRequest(@NonNull final String url) {
    return new HttpRequestCompiler("GET", url);
  }

  /**
   * Starts the creation of a PUT {@link HttpRequest}.
   */
  @NonNull
  @SuppressWarnings("unchecked")
  public static HTBodyHeaderFieldRedirectsCachesConnectionTimeoutReadTimeoutCompile