Package org.kohsuke.github
Interface HttpConnector
-
- All Known Implementing Classes:
GitHubConnectorHttpConnectorAdapter
,ImpatientHttpConnector
,OkHttp3Connector
,OkHttpConnector
,OkHttpConnector
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface @Deprecated public interface HttpConnector
Deprecated.UseGitHubConnector
instead.Pluggability for customizing HTTP request behaviors or using altogether different library.For example, you can implement this to st custom timeouts.
- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description static HttpConnector
DEFAULT
Deprecated.Default implementation that usesURL.openConnection()
.static HttpConnector
OFFLINE
Deprecated.Stub implementation that is always off-line.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description HttpURLConnection
connect(URL url)
Deprecated.Opens a connection to the given URL.
-
-
-
Field Detail
-
DEFAULT
static final HttpConnector DEFAULT
Deprecated.Default implementation that usesURL.openConnection()
.
-
OFFLINE
static final HttpConnector OFFLINE
Deprecated.Stub implementation that is always off-line.
-
-
Method Detail
-
connect
HttpURLConnection connect(URL url) throws IOException
Deprecated.Opens a connection to the given URL.- Parameters:
url
- the url- Returns:
- the http url connection
- Throws:
IOException
- the io exception
-
-