OkHttpでいろいろやろうとしたときに調べたものを列挙(随時追記) Basic認証 OkHttpClientにAuthenticatorを設定しておくとリクエストの際にそれをつかって認証してくれる OkHttpClient client = new OkHttpClient(); client.setAuthenticator(new Authenticator() { @Override public Request authenticate(Proxy proxy, Response response) throws IOException { String credential = Credentials.basic("ユーザー名", "パスワード"); return response.request().newBuilder().header("Authorization", c