Package dev.sigstore.http
Class HttpClients
- java.lang.Object
-
- dev.sigstore.http.HttpClients
-
public class HttpClients extends java.lang.ObjectHttpClients generates Google Http Client objects from configuration.
-
-
Constructor Summary
Constructors Constructor Description HttpClients()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.api.client.http.HttpTransportnewHttpTransport(HttpParams httpParams)Build a transport, you probably want to usenewRequestFactory(dev.sigstore.http.HttpParams)to instantiate GET and POST requests.static com.google.api.client.http.HttpRequestFactorynewRequestFactory(HttpParams httpParams)Create a new get requests with the httpParams applied and retries.
-
-
-
Method Detail
-
newHttpTransport
public static com.google.api.client.http.HttpTransport newHttpTransport(HttpParams httpParams)
Build a transport, you probably want to usenewRequestFactory(dev.sigstore.http.HttpParams)to instantiate GET and POST requests.
-
newRequestFactory
public static com.google.api.client.http.HttpRequestFactory newRequestFactory(HttpParams httpParams) throws java.io.IOException
Create a new get requests with the httpParams applied and retries.- Throws:
java.io.IOException
-
-