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.
Deprecated.
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
FieldsModifier and TypeFieldDescriptionstatic final HttpConnectorDeprecated.Default implementation that usesURL.openConnection().static final HttpConnectorDeprecated.Stub implementation that is always off-line. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Opens a connection to the given URL.
-
Field Details
-
DEFAULT
Deprecated.Default implementation that usesURL.openConnection(). -
OFFLINE
Deprecated.Stub implementation that is always off-line.
-
-
Method Details
-
connect
Deprecated.Opens a connection to the given URL.- Parameters:
url- the url- Returns:
- the http url connection
- Throws:
IOException- the io exception
-
GitHubConnectorinstead.