null the repository's default branch, usually master,
+ * if null the repository's default branch, usually main,
* @throws IOException
* The IO exception.
* @return the result of reading the stream.
@@ -3167,7 +3169,7 @@ public class GHRepository extends GHObject {
* @param streamFunction
* The {@link InputStreamFunction} that will process the stream
* @param ref
- * if null the repository's default branch, usually master,
+ * if null the repository's default branch, usually main,
* @throws IOException
* The IO exception.
* @return the result of reading the stream.
diff --git a/src/test/java/org/kohsuke/github/AppTest.java b/src/test/java/org/kohsuke/github/AppTest.java
index 334de72f0..9de6d4ac4 100755
--- a/src/test/java/org/kohsuke/github/AppTest.java
+++ b/src/test/java/org/kohsuke/github/AppTest.java
@@ -368,7 +368,8 @@ public class AppTest extends AbstractGitHubWireMockTest {
@Test
public void testFetchPullRequest() throws Exception {
GHRepository r = gitHub.getOrganization("jenkinsci").getRepository("jenkins");
- assertEquals("master", r.getMasterBranch());
+ assertEquals("main", r.getMasterBranch());
+ assertEquals("main", r.getDefaultBranch());
r.getPullRequest(1);
r.getPullRequests(GHIssueState.OPEN);
}
@@ -377,7 +378,7 @@ public class AppTest extends AbstractGitHubWireMockTest {
@Test
public void testFetchPullRequestAsList() throws Exception {
GHRepository r = gitHub.getRepository("hub4j/github-api");
- assertEquals("master", r.getMasterBranch());
+ assertEquals("main", r.getMasterBranch());
PagedIterableSourced from okhttp-urlconnection's changelog.
\n\n\nVersion 4.3.1
\n2019-01-07
\n\n
\n- Fix: Don't crash with a
\nNullPointerExceptionwhen a web socket is closed before it connects.\nThis regression was introduced in OkHttp 4.3.0.- Fix: Don't crash with an
\nIllegalArgumentExceptionwhen using custom trust managers on\nAndroid 10. Android uses reflection to look up a magiccheckServerTrusted()method and we\ndidn't have it.- Fix: Explicitly specify the remote server name when making HTTPS connections on Android 5. In\n4.3.0 we introduced a regression where server name indication (SNI) was broken on Android 5.
\nVersion 4.3.0
\n2019-12-31
\n\n
\n ... (truncated)\n- \n
\nFix: Degrade HTTP/2 connections after a timeout. When an HTTP/2 stream times out it may impact\nthe stream only or the entire connection. With this fix OkHttp will now send HTTP/2 pings after\na stream timeout to determine whether the connection should remain eligible for pooling.
\n- \n
\nFix: Don't call
\nEventListener.responseHeadersStart()orresponseBodyStart()until bytes have\nbeen received. Previously these events were incorrectly sent too early, when OkHttp was ready to\nread the response headers or body, which mislead tracing tools. Note that theresponseFailed()\nevent always used to follow one of these events; now it may be sent without them.- \n
\nNew: Upgrade to Kotlin 1.3.61.
\n- \n
\nNew: Match any number of subdomains with two asterisks in
\nCertificatePinner. For example,\n**.squareup.commatchesus-west.www.squareup.com,www.squareup.comandsquareup.com.- \n
\nNew: Share threads more aggressively between OkHttp's HTTP/2 connections, connection pool,\nweb sockets, and cache. OkHttp has a new internal task runner abstraction for managed task\nscheduling. In your debugger you will see new thread names and more use of daemon threads.
\n- \n
\nFix: Don't drop callbacks on unexpected exceptions. When an interceptor throws an unchecked\nexception the callback is now notified that the call was canceled. The exception is still sent\nto the uncaught exception handler for reporting and recovery.
\n- \n
\nFix: Un-deprecate
\nMockResponse.setHeaders()and other setters. These were deprecated in OkHttp\n4.0 but that broke method chaining for Java callers.- \n
\nFix: Don't crash on HTTP/2 HEAD requests when the
\nContent-Lengthheader is present but is not\nconsistent with the length of the response body.- \n
\nFix: Don't crash when converting a
\nHttpUrlinstance with an unresolvable hostname to a URI.\nThe new behavior strips invalid characters like"and{from the hostname before converting.- \n
\nFix: Undo a performance regression introduced in OkHttp 4.0 caused by differences in behavior\nbetween Kotlin's
\nassert()and Java'sassert(). (Kotlin always evaluates the argument; Java
a56a1b9 Prepare for release 4.3.1.75f73ae Set hostname on Android 5.0 (#5702)7f6b11e Fix a regression closing WebSockets before connect915d240 Android 10 support for X509TrustManager (#5688)b63debd Prepare for release 4.3.0.b2b2dd7 Merge pull request #5676 from square/jwilson.1231.restore_chaininga2c0607 Un-deprecate some setters for chaining from Javabf85d1b Merge pull request #5195 from square/fix-content-length-of-http2-response-body62cf6c2 Merge pull request #5674 from square/jwilson.1231.stripbd675a8 Merge pull request #5671 from square/jwilson.1230.debug_loggingSourced from okhttp-urlconnection's changelog.
\n\n\nVersion 4.3.1
\n2019-01-07
\n\n
\n- Fix: Don't crash with a
\nNullPointerExceptionwhen a web socket is closed before it connects.\nThis regression was introduced in OkHttp 4.3.0.- Fix: Don't crash with an
\nIllegalArgumentExceptionwhen using custom trust managers on\nAndroid 10. Android uses reflection to look up a magiccheckServerTrusted()method and we\ndidn't have it.- Fix: Explicitly specify the remote server name when making HTTPS connections on Android 5. In\n4.3.0 we introduced a regression where server name indication (SNI) was broken on Android 5.
\nVersion 4.3.0
\n2019-12-31
\n\n
\n ... (truncated)\n- \n
\nFix: Degrade HTTP/2 connections after a timeout. When an HTTP/2 stream times out it may impact\nthe stream only or the entire connection. With this fix OkHttp will now send HTTP/2 pings after\na stream timeout to determine whether the connection should remain eligible for pooling.
\n- \n
\nFix: Don't call
\nEventListener.responseHeadersStart()orresponseBodyStart()until bytes have\nbeen received. Previously these events were incorrectly sent too early, when OkHttp was ready to\nread the response headers or body, which mislead tracing tools. Note that theresponseFailed()\nevent always used to follow one of these events; now it may be sent without them.- \n
\nNew: Upgrade to Kotlin 1.3.61.
\n- \n
\nNew: Match any number of subdomains with two asterisks in
\nCertificatePinner. For example,\n**.squareup.commatchesus-west.www.squareup.com,www.squareup.comandsquareup.com.- \n
\nNew: Share threads more aggressively between OkHttp's HTTP/2 connections, connection pool,\nweb sockets, and cache. OkHttp has a new internal task runner abstraction for managed task\nscheduling. In your debugger you will see new thread names and more use of daemon threads.
\n- \n
\nFix: Don't drop callbacks on unexpected exceptions. When an interceptor throws an unchecked\nexception the callback is now notified that the call was canceled. The exception is still sent\nto the uncaught exception handler for reporting and recovery.
\n- \n
\nFix: Un-deprecate
\nMockResponse.setHeaders()and other setters. These were deprecated in OkHttp\n4.0 but that broke method chaining for Java callers.- \n
\nFix: Don't crash on HTTP/2 HEAD requests when the
\nContent-Lengthheader is present but is not\nconsistent with the length of the response body.- \n
\nFix: Don't crash when converting a
\nHttpUrlinstance with an unresolvable hostname to a URI.\nThe new behavior strips invalid characters like"and{from the hostname before converting.- \n
\nFix: Undo a performance regression introduced in OkHttp 4.0 caused by differences in behavior\nbetween Kotlin's
\nassert()and Java'sassert(). (Kotlin always evaluates the argument; Java
a56a1b9 Prepare for release 4.3.1.75f73ae Set hostname on Android 5.0 (#5702)7f6b11e Fix a regression closing WebSockets before connect915d240 Android 10 support for X509TrustManager (#5688)b63debd Prepare for release 4.3.0.b2b2dd7 Merge pull request #5676 from square/jwilson.1231.restore_chaininga2c0607 Un-deprecate some setters for chaining from Javabf85d1b Merge pull request #5195 from square/fix-content-length-of-http2-response-body62cf6c2 Merge pull request #5674 from square/jwilson.1231.stripbd675a8 Merge pull request #5671 from square/jwilson.1230.debug_loggingSourced from okhttp's changelog.
\n\n\nVersion 4.3.1
\n2019-01-07
\n\n
\n- Fix: Don't crash with a
\nNullPointerExceptionwhen a web socket is closed before it connects.\nThis regression was introduced in OkHttp 4.3.0.- Fix: Don't crash with an
\nIllegalArgumentExceptionwhen using custom trust managers on\nAndroid 10. Android uses reflection to look up a magiccheckServerTrusted()method and we\ndidn't have it.- Fix: Explicitly specify the remote server name when making HTTPS connections on Android 5. In\n4.3.0 we introduced a regression where server name indication (SNI) was broken on Android 5.
\nVersion 4.3.0
\n2019-12-31
\n\n
\n ... (truncated)\n- \n
\nFix: Degrade HTTP/2 connections after a timeout. When an HTTP/2 stream times out it may impact\nthe stream only or the entire connection. With this fix OkHttp will now send HTTP/2 pings after\na stream timeout to determine whether the connection should remain eligible for pooling.
\n- \n
\nFix: Don't call
\nEventListener.responseHeadersStart()orresponseBodyStart()until bytes have\nbeen received. Previously these events were incorrectly sent too early, when OkHttp was ready to\nread the response headers or body, which mislead tracing tools. Note that theresponseFailed()\nevent always used to follow one of these events; now it may be sent without them.- \n
\nNew: Upgrade to Kotlin 1.3.61.
\n- \n
\nNew: Match any number of subdomains with two asterisks in
\nCertificatePinner. For example,\n**.squareup.commatchesus-west.www.squareup.com,www.squareup.comandsquareup.com.- \n
\nNew: Share threads more aggressively between OkHttp's HTTP/2 connections, connection pool,\nweb sockets, and cache. OkHttp has a new internal task runner abstraction for managed task\nscheduling. In your debugger you will see new thread names and more use of daemon threads.
\n- \n
\nFix: Don't drop callbacks on unexpected exceptions. When an interceptor throws an unchecked\nexception the callback is now notified that the call was canceled. The exception is still sent\nto the uncaught exception handler for reporting and recovery.
\n- \n
\nFix: Un-deprecate
\nMockResponse.setHeaders()and other setters. These were deprecated in OkHttp\n4.0 but that broke method chaining for Java callers.- \n
\nFix: Don't crash on HTTP/2 HEAD requests when the
\nContent-Lengthheader is present but is not\nconsistent with the length of the response body.- \n
\nFix: Don't crash when converting a
\nHttpUrlinstance with an unresolvable hostname to a URI.\nThe new behavior strips invalid characters like"and{from the hostname before converting.- \n
\nFix: Undo a performance regression introduced in OkHttp 4.0 caused by differences in behavior\nbetween Kotlin's
\nassert()and Java'sassert(). (Kotlin always evaluates the argument; Java
a56a1b9 Prepare for release 4.3.1.75f73ae Set hostname on Android 5.0 (#5702)7f6b11e Fix a regression closing WebSockets before connect915d240 Android 10 support for X509TrustManager (#5688)b63debd Prepare for release 4.3.0.b2b2dd7 Merge pull request #5676 from square/jwilson.1231.restore_chaininga2c0607 Un-deprecate some setters for chaining from Javabf85d1b Merge pull request #5195 from square/fix-content-length-of-http2-response-body62cf6c2 Merge pull request #5674 from square/jwilson.1231.stripbd675a8 Merge pull request #5671 from square/jwilson.1230.debug_loggingSourced from okhttp's changelog.
\n\n\nVersion 4.3.1
\n2019-01-07
\n\n
\n- Fix: Don't crash with a
\nNullPointerExceptionwhen a web socket is closed before it connects.\nThis regression was introduced in OkHttp 4.3.0.- Fix: Don't crash with an
\nIllegalArgumentExceptionwhen using custom trust managers on\nAndroid 10. Android uses reflection to look up a magiccheckServerTrusted()method and we\ndidn't have it.- Fix: Explicitly specify the remote server name when making HTTPS connections on Android 5. In\n4.3.0 we introduced a regression where server name indication (SNI) was broken on Android 5.
\nVersion 4.3.0
\n2019-12-31
\n\n
\n ... (truncated)\n- \n
\nFix: Degrade HTTP/2 connections after a timeout. When an HTTP/2 stream times out it may impact\nthe stream only or the entire connection. With this fix OkHttp will now send HTTP/2 pings after\na stream timeout to determine whether the connection should remain eligible for pooling.
\n- \n
\nFix: Don't call
\nEventListener.responseHeadersStart()orresponseBodyStart()until bytes have\nbeen received. Previously these events were incorrectly sent too early, when OkHttp was ready to\nread the response headers or body, which mislead tracing tools. Note that theresponseFailed()\nevent always used to follow one of these events; now it may be sent without them.- \n
\nNew: Upgrade to Kotlin 1.3.61.
\n- \n
\nNew: Match any number of subdomains with two asterisks in
\nCertificatePinner. For example,\n**.squareup.commatchesus-west.www.squareup.com,www.squareup.comandsquareup.com.- \n
\nNew: Share threads more aggressively between OkHttp's HTTP/2 connections, connection pool,\nweb sockets, and cache. OkHttp has a new internal task runner abstraction for managed task\nscheduling. In your debugger you will see new thread names and more use of daemon threads.
\n- \n
\nFix: Don't drop callbacks on unexpected exceptions. When an interceptor throws an unchecked\nexception the callback is now notified that the call was canceled. The exception is still sent\nto the uncaught exception handler for reporting and recovery.
\n- \n
\nFix: Un-deprecate
\nMockResponse.setHeaders()and other setters. These were deprecated in OkHttp\n4.0 but that broke method chaining for Java callers.- \n
\nFix: Don't crash on HTTP/2 HEAD requests when the
\nContent-Lengthheader is present but is not\nconsistent with the length of the response body.- \n
\nFix: Don't crash when converting a
\nHttpUrlinstance with an unresolvable hostname to a URI.\nThe new behavior strips invalid characters like"and{from the hostname before converting.- \n
\nFix: Undo a performance regression introduced in OkHttp 4.0 caused by differences in behavior\nbetween Kotlin's
\nassert()and Java'sassert(). (Kotlin always evaluates the argument; Java
a56a1b9 Prepare for release 4.3.1.75f73ae Set hostname on Android 5.0 (#5702)7f6b11e Fix a regression closing WebSockets before connect915d240 Android 10 support for X509TrustManager (#5688)b63debd Prepare for release 4.3.0.b2b2dd7 Merge pull request #5676 from square/jwilson.1231.restore_chaininga2c0607 Un-deprecate some setters for chaining from Javabf85d1b Merge pull request #5195 from square/fix-content-length-of-http2-response-body62cf6c2 Merge pull request #5674 from square/jwilson.1231.stripbd675a8 Merge pull request #5671 from square/jwilson.1230.debug_loggingSourced from junit's releases.
\n\n\nJUnit 4.13
\nPlease refer to the release notes for details.
\nJUnit 4.13 RC 2
\nPlease refer to the release notes for details.
\nJUnit 4.13 RC 1
\nPlease refer to the release notes for details.
\nJUnit 4.13 Beta 3
\nPlease refer to the release notes for details.
\nJUnit 4.13 Beta 2
\nPlease refer to the release notes for details.
\nJUnit 4.13 Beta 1
\nPlease refer to the release notes for details.
\n
038f751 [maven-release-plugin] prepare release r4.138fd0197 [maven-release-plugin] prepare for next development iterationc0bdd7d [maven-release-plugin] prepare release r4.13-rc-2ea2e229 [maven-release-plugin] prepare for next development iteration0a5a2f8 [maven-release-plugin] prepare release r4.13-rc-2b51fa17 Ensure classes annotated with @OrderWith do not have @FixMethodOrder.7c2f12c Never reorder classes annotated with @FixMethodOrder6c5de81 Remove reference to obsolete mailing list6c7cb4b Delete outdated docsfc3938a [maven-release-plugin] prepare for next development iterationSourced from junit's releases.
\n\n\nJUnit 4.13
\nPlease refer to the release notes for details.
\nJUnit 4.13 RC 2
\nPlease refer to the release notes for details.
\nJUnit 4.13 RC 1
\nPlease refer to the release notes for details.
\nJUnit 4.13 Beta 3
\nPlease refer to the release notes for details.
\nJUnit 4.13 Beta 2
\nPlease refer to the release notes for details.
\nJUnit 4.13 Beta 1
\nPlease refer to the release notes for details.
\n
038f751 [maven-release-plugin] prepare release r4.138fd0197 [maven-release-plugin] prepare for next development iterationc0bdd7d [maven-release-plugin] prepare release r4.13-rc-2ea2e229 [maven-release-plugin] prepare for next development iteration0a5a2f8 [maven-release-plugin] prepare release r4.13-rc-2b51fa17 Ensure classes annotated with @OrderWith do not have @FixMethodOrder.7c2f12c Never reorder classes annotated with @FixMethodOrder6c5de81 Remove reference to obsolete mailing list6c7cb4b Delete outdated docsfc3938a [maven-release-plugin] prepare for next development iterationSourced from okhttp-urlconnection's changelog.
\n\n\nVersion 4.3.0
\n2019-12-31
\n\n
\n- \n
\nFix: Degrade HTTP/2 connections after a timeout. When an HTTP/2 stream times out it may impact\nthe stream only or the entire connection. With this fix OkHttp will now send HTTP/2 pings after\na stream timeout to determine whether the connection should remain eligible for pooling.
\n- \n
\nFix: Don't call
\nEventListener.responseHeadersStart()orresponseBodyStart()until bytes have\nbeen received. Previously these events were incorrectly sent too early, when OkHttp was ready to\nread the response headers or body, which mislead tracing tools. Note that theresponseFailed()\nevent always used to follow one of these events; now it may be sent without them.- \n
\nNew: Upgrade to Kotlin 1.3.61.
\n- \n
\nNew: Match any number of subdomains with two asterisks in
\nCertificatePinner. For example,\n**.squareup.commatchesus-west.www.squareup.com,www.squareup.comandsquareup.com.- \n
\nNew: Share threads more aggressively between OkHttp's HTTP/2 connections, connection pool,\nweb sockets, and cache. OkHttp has a new internal task runner abstraction for managed task\nscheduling. In your debugger you will see new thread names and more use of daemon threads.
\n- \n
\nFix: Don't drop callbacks on unexpected exceptions. When an interceptor throws an unchecked\nexception the callback is now notified that the call was canceled. The exception is still sent\nto the uncaught exception handler for reporting and recovery.
\n- \n
\nFix: Un-deprecate
\nMockResponse.setHeaders()and other setters. These were deprecated in OkHttp\n4.0 but that broke method chaining for Java callers.- \n
\nFix: Don't crash on HTTP/2 HEAD requests when the
\nContent-Lengthheader is present but is not\nconsistent with the length of the response body.- \n
\nFix: Don't crash when converting a
\nHttpUrlinstance with an unresolvable hostname to a URI.\nThe new behavior strips invalid characters like"and{from the hostname before converting.- \n
\nFix: Undo a performance regression introduced in OkHttp 4.0 caused by differences in behavior\nbetween Kotlin's
\nassert()and Java'sassert(). (Kotlin always evaluates the argument; Java\nonly does when assertions are enabled.)- \n
\nFix: Honor
\nRequestBody.isOneShot()inHttpLoggingInterceptor.Version 4.2.2
\n2019-10-06
\n\n
\n ... (truncated)\n- Fix: When closing a canceled HTTP/2 stream, don't send the
\nEND_STREAMflag. This could cause\nthe server to incorrectly interpret the stream as having completed normally. This is most useful\nwhen a request body needs to cancel its own call.
b63debd Prepare for release 4.3.0.b2b2dd7 Merge pull request #5676 from square/jwilson.1231.restore_chaininga2c0607 Un-deprecate some setters for chaining from Javabf85d1b Merge pull request #5195 from square/fix-content-length-of-http2-response-body62cf6c2 Merge pull request #5674 from square/jwilson.1231.stripbd675a8 Merge pull request #5671 from square/jwilson.1230.debug_logginga815093 Document debug logging.283418b Fix a crash in HttpUrl.toUri().b9e0422 Merge pull request #5672 from square/jwilson.1230.await_idleedb5865 Fix crash on repeated MockWebServer shutdownSourced from okhttp-urlconnection's changelog.
\n\n\nVersion 4.3.0
\n2019-12-31
\n\n
\n- \n
\nFix: Degrade HTTP/2 connections after a timeout. When an HTTP/2 stream times out it may impact\nthe stream only or the entire connection. With this fix OkHttp will now send HTTP/2 pings after\na stream timeout to determine whether the connection should remain eligible for pooling.
\n- \n
\nFix: Don't call
\nEventListener.responseHeadersStart()orresponseBodyStart()until bytes have\nbeen received. Previously these events were incorrectly sent too early, when OkHttp was ready to\nread the response headers or body, which mislead tracing tools. Note that theresponseFailed()\nevent always used to follow one of these events; now it may be sent without them.- \n
\nNew: Upgrade to Kotlin 1.3.61.
\n- \n
\nNew: Match any number of subdomains with two asterisks in
\nCertificatePinner. For example,\n**.squareup.commatchesus-west.www.squareup.com,www.squareup.comandsquareup.com.- \n
\nNew: Share threads more aggressively between OkHttp's HTTP/2 connections, connection pool,\nweb sockets, and cache. OkHttp has a new internal task runner abstraction for managed task\nscheduling. In your debugger you will see new thread names and more use of daemon threads.
\n- \n
\nFix: Don't drop callbacks on unexpected exceptions. When an interceptor throws an unchecked\nexception the callback is now notified that the call was canceled. The exception is still sent\nto the uncaught exception handler for reporting and recovery.
\n- \n
\nFix: Un-deprecate
\nMockResponse.setHeaders()and other setters. These were deprecated in OkHttp\n4.0 but that broke method chaining for Java callers.- \n
\nFix: Don't crash on HTTP/2 HEAD requests when the
\nContent-Lengthheader is present but is not\nconsistent with the length of the response body.- \n
\nFix: Don't crash when converting a
\nHttpUrlinstance with an unresolvable hostname to a URI.\nThe new behavior strips invalid characters like"and{from the hostname before converting.- \n
\nFix: Undo a performance regression introduced in OkHttp 4.0 caused by differences in behavior\nbetween Kotlin's
\nassert()and Java'sassert(). (Kotlin always evaluates the argument; Java\nonly does when assertions are enabled.)- \n
\nFix: Honor
\nRequestBody.isOneShot()inHttpLoggingInterceptor.Version 4.2.2
\n2019-10-06
\n\n
\n ... (truncated)\n- Fix: When closing a canceled HTTP/2 stream, don't send the
\nEND_STREAMflag. This could cause\nthe server to incorrectly interpret the stream as having completed normally. This is most useful\nwhen a request body needs to cancel its own call.
b63debd Prepare for release 4.3.0.b2b2dd7 Merge pull request #5676 from square/jwilson.1231.restore_chaininga2c0607 Un-deprecate some setters for chaining from Javabf85d1b Merge pull request #5195 from square/fix-content-length-of-http2-response-body62cf6c2 Merge pull request #5674 from square/jwilson.1231.stripbd675a8 Merge pull request #5671 from square/jwilson.1230.debug_logginga815093 Document debug logging.283418b Fix a crash in HttpUrl.toUri().b9e0422 Merge pull request #5672 from square/jwilson.1230.await_idleedb5865 Fix crash on repeated MockWebServer shutdownSourced from okhttp's changelog.
\n\n\nVersion 4.3.0
\n2019-12-31
\n\n
\n- \n
\nFix: Degrade HTTP/2 connections after a timeout. When an HTTP/2 stream times out it may impact\nthe stream only or the entire connection. With this fix OkHttp will now send HTTP/2 pings after\na stream timeout to determine whether the connection should remain eligible for pooling.
\n- \n
\nFix: Don't call
\nEventListener.responseHeadersStart()orresponseBodyStart()until bytes have\nbeen received. Previously these events were incorrectly sent too early, when OkHttp was ready to\nread the response headers or body, which mislead tracing tools. Note that theresponseFailed()\nevent always used to follow one of these events; now it may be sent without them.- \n
\nNew: Upgrade to Kotlin 1.3.61.
\n- \n
\nNew: Match any number of subdomains with two asterisks in
\nCertificatePinner. For example,\n**.squareup.commatchesus-west.www.squareup.com,www.squareup.comandsquareup.com.- \n
\nNew: Share threads more aggressively between OkHttp's HTTP/2 connections, connection pool,\nweb sockets, and cache. OkHttp has a new internal task runner abstraction for managed task\nscheduling. In your debugger you will see new thread names and more use of daemon threads.
\n- \n
\nFix: Don't drop callbacks on unexpected exceptions. When an interceptor throws an unchecked\nexception the callback is now notified that the call was canceled. The exception is still sent\nto the uncaught exception handler for reporting and recovery.
\n- \n
\nFix: Un-deprecate
\nMockResponse.setHeaders()and other setters. These were deprecated in OkHttp\n4.0 but that broke method chaining for Java callers.- \n
\nFix: Don't crash on HTTP/2 HEAD requests when the
\nContent-Lengthheader is present but is not\nconsistent with the length of the response body.- \n
\nFix: Don't crash when converting a
\nHttpUrlinstance with an unresolvable hostname to a URI.\nThe new behavior strips invalid characters like"and{from the hostname before converting.- \n
\nFix: Undo a performance regression introduced in OkHttp 4.0 caused by differences in behavior\nbetween Kotlin's
\nassert()and Java'sassert(). (Kotlin always evaluates the argument; Java\nonly does when assertions are enabled.)- \n
\nFix: Honor
\nRequestBody.isOneShot()inHttpLoggingInterceptor.
b63debd Prepare for release 4.3.0.b2b2dd7 Merge pull request #5676 from square/jwilson.1231.restore_chaininga2c0607 Un-deprecate some setters for chaining from Javabf85d1b Merge pull request #5195 from square/fix-content-length-of-http2-response-body62cf6c2 Merge pull request #5674 from square/jwilson.1231.stripbd675a8 Merge pull request #5671 from square/jwilson.1230.debug_logginga815093 Document debug logging.283418b Fix a crash in HttpUrl.toUri().b9e0422 Merge pull request #5672 from square/jwilson.1230.await_idleedb5865 Fix crash on repeated MockWebServer shutdownSourced from okhttp's changelog.
\n\n\nVersion 4.3.0
\n2019-12-31
\n\n
\n- \n
\nFix: Degrade HTTP/2 connections after a timeout. When an HTTP/2 stream times out it may impact\nthe stream only or the entire connection. With this fix OkHttp will now send HTTP/2 pings after\na stream timeout to determine whether the connection should remain eligible for pooling.
\n- \n
\nFix: Don't call
\nEventListener.responseHeadersStart()orresponseBodyStart()until bytes have\nbeen received. Previously these events were incorrectly sent too early, when OkHttp was ready to\nread the response headers or body, which mislead tracing tools. Note that theresponseFailed()\nevent always used to follow one of these events; now it may be sent without them.- \n
\nNew: Upgrade to Kotlin 1.3.61.
\n- \n
\nNew: Match any number of subdomains with two asterisks in
\nCertificatePinner. For example,\n**.squareup.commatchesus-west.www.squareup.com,www.squareup.comandsquareup.com.- \n
\nNew: Share threads more aggressively between OkHttp's HTTP/2 connections, connection pool,\nweb sockets, and cache. OkHttp has a new internal task runner abstraction for managed task\nscheduling. In your debugger you will see new thread names and more use of daemon threads.
\n- \n
\nFix: Don't drop callbacks on unexpected exceptions. When an interceptor throws an unchecked\nexception the callback is now notified that the call was canceled. The exception is still sent\nto the uncaught exception handler for reporting and recovery.
\n- \n
\nFix: Un-deprecate
\nMockResponse.setHeaders()and other setters. These were deprecated in OkHttp\n4.0 but that broke method chaining for Java callers.- \n
\nFix: Don't crash on HTTP/2 HEAD requests when the
\nContent-Lengthheader is present but is not\nconsistent with the length of the response body.- \n
\nFix: Don't crash when converting a
\nHttpUrlinstance with an unresolvable hostname to a URI.\nThe new behavior strips invalid characters like"and{from the hostname before converting.- \n
\nFix: Undo a performance regression introduced in OkHttp 4.0 caused by differences in behavior\nbetween Kotlin's
\nassert()and Java'sassert(). (Kotlin always evaluates the argument; Java\nonly does when assertions are enabled.)- \n
\nFix: Honor
\nRequestBody.isOneShot()inHttpLoggingInterceptor.
b63debd Prepare for release 4.3.0.b2b2dd7 Merge pull request #5676 from square/jwilson.1231.restore_chaininga2c0607 Un-deprecate some setters for chaining from Javabf85d1b Merge pull request #5195 from square/fix-content-length-of-http2-response-body62cf6c2 Merge pull request #5674 from square/jwilson.1231.stripbd675a8 Merge pull request #5671 from square/jwilson.1230.debug_logginga815093 Document debug logging.283418b Fix a crash in HttpUrl.toUri().b9e0422 Merge pull request #5672 from square/jwilson.1230.await_idleedb5865 Fix crash on repeated MockWebServer shutdownSourced from okio's changelog.
\n\n\nVersion 2.4.3
\n2019-12-20
\n\n
\n- New Upgrade to Kotlin 1.3.61.
\n
fd98e27 Prepare for release 2.4.3.0d6af3b Kotlin 1.3.61 (#682)0077fa7 Merge pull request #666 from bnorm/bnorm.1008.readbytestring3b8fb99 Okio 2.4.2 is releasedb29e83f Remove empty tail Segment (#686)d61cac2 Use SegmentedByteString when reading a significantly large ByteString34e5eb0 Add how to use snapshot section to readme (#664)1fa436a Make AsyncTimeout.withTimeout public (#662)517621e Use Kotlin-isms for converting an array to a string (#667)f90a970 Merge pull request #665 from square/egorand/191007/dokka-0.10.0Sourced from okio's changelog.
\n\n\nVersion 2.4.3
\n2019-12-20
\n\n
\n- New Upgrade to Kotlin 1.3.61.
\n
fd98e27 Prepare for release 2.4.3.0d6af3b Kotlin 1.3.61 (#682)0077fa7 Merge pull request #666 from bnorm/bnorm.1008.readbytestring3b8fb99 Okio 2.4.2 is releasedb29e83f Remove empty tail Segment (#686)d61cac2 Use SegmentedByteString when reading a significantly large ByteString34e5eb0 Add how to use snapshot section to readme (#664)1fa436a Make AsyncTimeout.withTimeout public (#662)517621e Use Kotlin-isms for converting an array to a string (#667)f90a970 Merge pull request #665 from square/egorand/191007/dokka-0.10.0