File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
googlehttpclient/src/main/java/feign/googlehttpclient Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11/**
2- * Copyright 2012-2020 The Feign Authors
2+ * Copyright 2012-2021 The Feign Authors
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
55 * in compliance with the License. You may obtain a copy of the License at
4141 * "https://api.github.com");
4242 */
4343public class GoogleHttpClient implements Client {
44- private final HttpTransport transport ;
4544 private final HttpRequestFactory requestFactory ;
4645
4746 public GoogleHttpClient () {
4847 this (new NetHttpTransport ());
4948 }
5049
5150 public GoogleHttpClient (final HttpTransport transport ) {
52- this .transport = transport ;
53- this .requestFactory = transport .createRequestFactory ();
51+ this (transport .createRequestFactory ());
52+ }
53+
54+ public GoogleHttpClient (final HttpRequestFactory requestFactory ) {
55+ this .requestFactory = requestFactory ;
5456 }
5557
5658 @ Override
You can’t perform that action at this time.
0 commit comments