Jesse Wilson
95ae0cf421
[maven-release-plugin] prepare release parent-3.11.0
parent-3.11.0
2018-07-12 23:41:00 -04:00
Jesse Wilson
bbfdfac006
Update the changelog for OkHttp 3.11.
2018-07-12 23:33:23 -04:00
Jesse Wilson
d51fd3ba6a
Merge pull request #4127 from square/concurrent-http2-flow-control
...
Confirm concurrent HTTP/2 requests with empty flow-control window.
2018-07-12 22:06:15 -04:00
Jesse Wilson
2f1be26582
Merge pull request #4142 from square/jwilson.0711.deluxe_tags
...
Deluxe tags.
2018-07-12 21:13:30 -04:00
Dave Roberge
f5905f4ef3
Confirm concurrent HTTP/2 requests with empty flow-control window.
2018-07-12 21:03:45 -04:00
Jesse Wilson
ce78c4cc22
Merge pull request #4144 from square/jwilson.0712.platform_trust
...
New API, HandshakeCertificates.addPlatformTrustedCertificates()
2018-07-12 20:45:48 -04:00
Jesse Wilson
7a29af6d95
Deluxe tags.
...
This expands our single Object.class into a Map<Class<T>, T>.
Closes: https://github.com/square/okhttp/issues/4087
2018-07-12 20:45:12 -04:00
Jesse Wilson
137e7de045
New API, HandshakeCertificates.addPlatformTrustedCertificates()
...
Also rename HeldCertificate.Builder.issuedBy() to signedBy(). 'Issued' is the
word used by certificates; 'signed' is the word used by cryptographers. I prefer
'signed'.
2018-07-12 10:51:33 -04:00
Jesse Wilson
37887141fe
Rename TlsNode to HandshakeCertificates ( #4141 )
2018-07-12 06:39:20 +01:00
Jesse Wilson
b0ac074437
Merge pull request #4139 from square/jwilson.0711.tls_node
...
Make TlsNode more like a value object.
2018-07-11 11:12:06 -04:00
Jesse Wilson
8ba6323b7e
Make TlsNode more like a value object.
...
Compute the SSLContext on-demand. This has negligible impact on the performance
of the test suite.
Also create a test case for TlsNode.
2018-07-11 10:10:04 -04:00
Jesse Wilson
73e410a400
Merge pull request #4136 from square/jwilson.0710.validate_certificateAuthority
...
Validate the certificate's basic constraints.
2018-07-11 10:08:44 -04:00
Jesse Wilson
c71ef59a90
Validate the certificate's basic constraints.
...
Also fix our calling code to have the smallest path lengths possible.
http://www.ietf.org/rfc/rfc3280.txt
2018-07-11 09:23:29 -04:00
Jesse Wilson
dfc82db14c
Merge pull request #4137 from square/jwilson.0710.prod_worthy
...
Fixup HeldCertificate so that it's worthy of production use.
2018-07-11 09:19:55 -04:00
Yuri Schimke
00def7aecf
Avoid hard conscrypt dep ( #4128 )
2018-07-11 07:00:22 +01:00
Jesse Wilson
db2ae92156
Fixup HeldCertificate so that it's worthy of production use.
...
This changes the default from the insecure 1024-bit RSA to a secure 256-bit ECDSA
key. It adds a new option to use RSA keys for interoperating with older clients.
2018-07-10 22:49:00 -04:00
Jesse Wilson
67f786d984
Merge pull request #4133 from square/jwilson.0709.okhttp_tls
...
New okhttp-tls module
2018-07-09 14:21:08 -04:00
Jesse Wilson
b1bfe7130c
New okhttp-tls module
2018-07-09 12:00:28 -04:00
Jesse Wilson
35247e9fcc
Merge pull request #4130 from square/jwilson.0708.tlsnode
...
Rename SslClient to TlsNode and make it a public API
2018-07-09 11:38:03 -04:00
Jesse Wilson
31c511f694
Rename SslClient to TlsNode and make it a public API
...
https://github.com/square/okhttp/issues/3934
2018-07-08 15:33:16 -04:00
Jesse Wilson
44c2696932
Merge pull request #4124 from square/jwilson.0706.client_certs
...
Support client authentication in MockWebServer
2018-07-06 16:22:42 -04:00
Jake Wharton
a2fb46b1a4
Merge pull request #4118 from square/jakew/parseOrThrow/2018-07-05
...
Add get(String) alternative which fails on invalid inputs
2018-07-06 15:49:25 -04:00
Jake Wharton
351b3d6bf7
Add get(String) alternative which fails on invalid inputs
...
This is an unchecked-throwing version of parse(String).
2018-07-06 15:30:55 -04:00
Eric Cochran
5785e1b4f6
Update Headers.addAll doc. ( #4125 )
2018-07-06 19:47:36 +01:00
Yuri Schimke
c84c8fadc2
Add headerBuilder.addAll(headers) method ( #4121 )
2018-07-06 17:24:40 +01:00
Yuri Schimke
21acfae8e3
Remove TLSv1.3 as default ( #4122 )
...
We specify TLSv1.3, but without any compatible cipher suites. So makes sense to remove for 3.11 to avoid weirdness as JVMs supporting TLSv1.3 start showing up. n.b. JDK 11 detects this and strips anyway.
2018-07-06 17:20:51 +01:00
Jesse Wilson
d908a676c2
Support client authentication in MockWebServer
...
Also expose the handshake in the RecordedResponse.
https://github.com/square/okhttp/issues/3934
2018-07-06 10:08:19 -04:00
Jesse Wilson
dd720d260a
Merge pull request #4120 from yschimke/reverse_suppression
...
Reverse suppression of connect exceptions
2018-07-06 06:53:49 -04:00
Yuri Schimke
9745e15d27
Reverse suppression of connect exceptions
2018-07-06 07:48:47 +01:00
Jesse Wilson
e7aed0e03d
Merge pull request #4116 from square/jakew/parseOrThrow/2018-07-05
...
Add parse overload which fails on invalid inputs
2018-07-05 23:34:34 -04:00
Jake Wharton
36f4fd04f7
Add parse overload which fails on invalid inputs
2018-07-05 23:18:15 -04:00
Jesse Wilson
552db2f42e
Merge pull request #4117 from square/jwilson.0705.retain_interrupted_state
...
Retain interrupted state when throwing InterruptedIOException
2018-07-05 22:58:29 -04:00
Jesse Wilson
aac684aeae
Retain interrupted state when throwing InterruptedIOException
...
The drawbacks seem small; the callsite needs to handle interruption anyway
because the thread is prone to interruption.
And the upside is that a single interrupt should now be sufficient to break
out an in-flight OkHttp call.
Note that although we're fixing this, thread interruption is not well tested
in OkHttp. Most users should prefer Call.cancel(), which is well tested and
doesn't rely on the caller to know which threads OkHttp is using to make
the actual HTTP request.
Closes: https://github.com/square/okhttp/issues/3945
2018-07-05 22:37:24 -04:00
Jake Wharton
d45f517f1f
Merge pull request #4115 from square/jakew/defer/2018-06-23
...
Add ResponseBody factory overload for ByteString
2018-07-05 20:43:56 -04:00
Jake Wharton
e41f2cb1d8
Add ResponseBody factory overload for ByteString
...
We shouldn't punish people with a roundtrip through byte[] for using a superior type!
2018-07-05 20:29:11 -04:00
Yuri Schimke
30e72340e0
HTTP Logging interceptor breaks EventListener ( #4095 )
...
HTTP Logging interceptor breaks EventListener because of changed event ordering. End the call on delayed release.
2018-07-05 07:42:54 +01:00
Yuri Schimke
bdbe2dad88
Android 4 and Java 1.7 prefer TLSv1.2 provider ( #4089 )
...
* java 1.7 TLV v1.2 support
* simplify TLSv1.2 vs TLS selection logic
* tighten up version checks
* cleanup
2018-06-30 09:32:10 -04:00
Jesse Wilson
714c9ac8b5
Merge branch 'oliveroneill-h2-stream-cancel-fix'
...
* oliveroneill-h2-stream-cancel-fix:
Fix stream cancel error stopping reused connection
2018-06-29 13:18:39 -04:00
Oliver
8b17ab4e65
Fix stream cancel error stopping reused connection
2018-06-29 12:51:51 -04:00
Yuri Schimke
aa58436fbf
Update cloudflare GET example ( #4097 )
...
* Update cloudflare GET example
* add IP example
2018-06-28 22:38:47 -04:00
Jesse Wilson
8fc6748b6d
Merge pull request #4096 from square/jwilson.0628.heldcertificate
...
HeldCertificate: a cert and its private key
2018-06-28 13:49:03 -04:00
Jesse Wilson
e983dd2ae0
HeldCertificate: a cert and its private key
...
This class has been in MockWebServer for a long time, but it's always been
in the internal package with an incomplete API. This change promotes it to
a public API.
It's not quite sufficient for use as-is; we also need to open source its
companion class 'SslClient' that represents who we trust (as a list of
root certificates) and who we are (as an optional held certificate plus
the chain to a root certificate).
2018-06-28 13:39:41 -04:00
Yuri Schimke
5b37cda9e0
DNS over HTTPS ( #3972 )
...
DNS over HTTPS implementation
experimental API in 3.11
https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-11
2018-06-24 20:29:21 +01:00
Jake Wharton
9a1217d27c
Merge pull request #4090 from square/jakew/defer/2018-06-23
...
Defer creating reader until necessary
2018-06-23 17:48:36 -04:00
Jake Wharton
0d04eecc01
Defer creating reader until necessary
2018-06-23 17:11:20 -04:00
Jake Wharton
171460b8a8
Merge pull request #4088 from yschimke/sse_response
...
API for handling an unexpected SSE response
2018-06-23 16:48:45 -04:00
Yuri Schimke
63ed542534
API for handling an unexpected SSE response
2018-06-23 16:16:57 +01:00
Yuri Schimke
f6502e89f9
Additional error checking for SSE ( #4082 )
...
* Additional error checking for SSE
* move to sse package, more tests, kotlin null friendly
2018-06-21 09:14:39 +01:00
Jesse Wilson
67bb8b2368
Merge pull request #4078 from square/jwilson.0619.unix_domainsockets_example
...
Example of OkHttp+MockWebServer with UNIX domain sockets
2018-06-20 11:46:45 -04:00
Jesse Wilson
60031057d2
Merge pull request #4068 from yschimke/finalise_api
...
Remove experimental doc for EventListener
2018-06-20 08:00:12 -04:00