diff --git a/samples/guide/src/main/java/com/squareup/okhttp/recipes/Headers.java b/samples/guide/src/main/java/com/squareup/okhttp/recipes/AccessHeaders.java similarity index 94% rename from samples/guide/src/main/java/com/squareup/okhttp/recipes/Headers.java rename to samples/guide/src/main/java/com/squareup/okhttp/recipes/AccessHeaders.java index 369908d30..9fe9d1ab6 100644 --- a/samples/guide/src/main/java/com/squareup/okhttp/recipes/Headers.java +++ b/samples/guide/src/main/java/com/squareup/okhttp/recipes/AccessHeaders.java @@ -20,7 +20,7 @@ import com.squareup.okhttp.Request; import com.squareup.okhttp.Response; import java.io.IOException; -public final class Headers { +public final class AccessHeaders { private final OkHttpClient client = new OkHttpClient(); public void run() throws Exception { @@ -37,11 +37,9 @@ public final class Headers { System.out.println("Server: " + response.header("Server")); System.out.println("Date: " + response.header("Date")); System.out.println("Vary: " + response.headers("Vary")); - - response.body().close(); } public static void main(String... args) throws Exception { - new Headers().run(); + new AccessHeaders().run(); } } diff --git a/samples/guide/src/main/java/com/squareup/okhttp/recipes/MultipartPost.java b/samples/guide/src/main/java/com/squareup/okhttp/recipes/PostMultipart.java similarity index 97% rename from samples/guide/src/main/java/com/squareup/okhttp/recipes/MultipartPost.java rename to samples/guide/src/main/java/com/squareup/okhttp/recipes/PostMultipart.java index 3d4560018..70a1bfc4b 100644 --- a/samples/guide/src/main/java/com/squareup/okhttp/recipes/MultipartPost.java +++ b/samples/guide/src/main/java/com/squareup/okhttp/recipes/PostMultipart.java @@ -25,7 +25,7 @@ import com.squareup.okhttp.Response; import java.io.File; import java.io.IOException; -public final class MultipartPost { +public final class PostMultipart { /** * The imgur client ID for OkHttp recipes. If you're using imgur for anything * other than running these examples, please request your own client ID! @@ -61,6 +61,6 @@ public final class MultipartPost { } public static void main(String... args) throws Exception { - new MultipartPost().run(); + new PostMultipart().run(); } }