Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2012-2020 The Feign Authors
* Copyright 2012-2021 The Feign Authors
*
* 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
Expand Down Expand Up @@ -41,16 +41,18 @@
* "https://api.github.com");
*/
public class GoogleHttpClient implements Client {
private final HttpTransport transport;
private final HttpRequestFactory requestFactory;

public GoogleHttpClient() {
this(new NetHttpTransport());
}

public GoogleHttpClient(final HttpTransport transport) {
this.transport = transport;
this.requestFactory = transport.createRequestFactory();
this(transport.createRequestFactory());
}

public GoogleHttpClient(final HttpRequestFactory requestFactory) {
this.requestFactory = requestFactory;
}

@Override
Expand Down