1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-17 08:42:25 +03:00
Commit Graph

1930 Commits

Author SHA1 Message Date
jwilson
7298bee253 [maven-release-plugin] prepare release parent-2.4.0 parent-2.4.0 2015-05-22 19:47:47 -04:00
jwilson
1a95e1695e Update changelog for 2.4.0. 2015-05-22 19:36:55 -04:00
Jesse Wilson
209560822c Merge pull request #1665 from square/jw/no-body-for-you
Forbid response bodies on HTTP 204 and 205 responses.
2015-05-22 18:02:59 -04:00
Jake Wharton
f1d137e026 Merge pull request #1669 from square/jw/unblock
Call onOpen on the reader thread and force writing on another thread.
2015-05-22 17:32:00 -04:00
Jake Wharton
2cde6765c6 Call onOpen on the reader thread and force writing on another thread. 2015-05-22 17:24:41 -04:00
Jesse Wilson
ce09d95757 Merge pull request #1668 from square/jw/ws-response
Add optional Response to WS failure callback.
2015-05-21 11:36:16 -04:00
Jake Wharton
8e25853755 Add optional Response to WS failure callback.
This also removes the explicit Request from WS open callback. It can be accessed by calling 'request()' on the supplied Response.
2015-05-21 00:56:30 -04:00
Jake Wharton
0b9bef71b1 Forbid response bodies on HTTP 204 and 205 responses. 2015-05-20 00:31:19 -04:00
Jake Wharton
aac8462fb2 Merge pull request #1663 from square/jwilson_0518_wss_urls
Accept ws: URLs in Request.Builder.
2015-05-18 20:48:06 -04:00
jwilson
805076f68a Accept ws: URLs in Request.Builder.
I contemplated supporting them in HttpUrl, but then realized I'd
either need to document that behavior (which is weird behavior)
or return ws from the scheme (which seems arbitrary.)

Doing it in Request seems less bad: we support websockets requests.
2015-05-18 20:40:48 -04:00
Jesse Wilson
0d8cef388b Merge pull request #1662 from square/jwilson_0518_pong
Fix flaky test Spdy3ConnectionTest.receiveGoAway().
2015-05-18 20:33:25 -04:00
jwilson
7f6df40180 Fix flaky test Spdy3ConnectionTest.receiveGoAway().
Closes https://github.com/square/okhttp/issues/1660
2015-05-18 19:55:51 -04:00
Jake Wharton
1276752a05 Merge pull request #1659 from square/jwilson_0517_crash_on_runtime_exception
Crash on unexpected RuntimeExceptions.
2015-05-17 20:18:33 -04:00
jwilson
8fe27a50c2 Crash on unexpected RuntimeExceptions.
Currently we're sweeping these under the rug.
2015-05-17 18:05:37 -04:00
Jesse Wilson
70912ada61 Merge pull request #1658 from square/jwilson_0517_mockspdypeer_close_race
Fix a race closing MockSpdyPeer.
2015-05-17 17:54:36 -04:00
jwilson
d2d8288bb0 Fix a race closing MockSpdyPeer.
It would have crashed if close() was called before readAndWriteFrames() started.
That's fixed now.
2015-05-17 17:37:18 -04:00
jwilson
30579882a8 Small Javadoc fixes. 2015-05-16 21:36:52 -04:00
jwilson
646c3d5b21 Updated changelog for 2.4.0-RC1. 2015-05-16 18:49:46 -04:00
jwilson
a96c439a91 [maven-release-plugin] prepare for next development iteration 2015-05-16 17:03:20 -04:00
jwilson
5cc7dba3ad [maven-release-plugin] prepare release parent-2.4.0-RC1 parent-2.4.0-RC1 2015-05-16 17:03:16 -04:00
Jake Wharton
a5e4b2fcaf Merge pull request #1654 from square/jwilson_0516_dont_share_timeouts
Don't share timeouts between pooled connections.
2015-05-16 15:01:48 -04:00
jwilson
4df674f8c5 Don't share timeouts between pooled connections.
This was causing crashes.

Closes https://github.com/square/okio/issues/133
2015-05-16 14:48:58 -04:00
Jake Wharton
0a64a94749 Merge pull request #1655 from square/jwilson_0516_okio_14
Use Okio 1.4.0 final.
2015-05-16 14:48:23 -04:00
jwilson
26401d8162 Use Okio 1.4.0 final. 2015-05-16 14:30:03 -04:00
Jesse Wilson
413f53e195 Merge pull request #1650 from square/jwilson_0514_add_encoded
New FormEncodingBuilder.addEncoded() API.
2015-05-15 21:19:36 -04:00
jwilson
3103cb1dbc New FormEncodingBuilder.addEncoded() API.
This is a behavior change: previously we'd encode '+' as plus
and encode characters that don't need it, including ','. Now
we use the same rules as HttpUrl.
2015-05-15 21:18:57 -04:00
Jesse Wilson
e0f8b9087a Merge pull request #1649 from square/jwilson_0514_set_path_segment
APIs to set and remove path segments.
2015-05-14 22:53:46 -04:00
jwilson
65a64c5407 APIs to set and remove path segments. 2015-05-14 22:26:33 -04:00
Jake Wharton
343227ee4b Merge pull request #1648 from square/jwilson_0514_encoded_form
Store the decoded components in HttpURL, and encoded in HttpUrl.Builder.
2015-05-14 18:45:37 -04:00
jwilson
cc82a311d5 Store the decoded components in HttpURL, and encoded in HttpUrl.Builder.
I may follow up by computing both on-demand.
2015-05-14 17:38:17 -04:00
Jesse Wilson
c08da4aa82 Merge pull request #1634 from square/jwilson_0512_encoding
Javadoc HttpUrl encoding.
2015-05-13 00:05:11 -04:00
jwilson
ebbe554e35 Javadoc HttpUrl encoding.
Closes https://github.com/square/okhttp/issues/1486
2015-05-12 23:57:02 -04:00
Jesse Wilson
a436addd70 Merge pull request #1633 from square/jwilson_0512_compose_whitespace
Encode whitespace as a component.
2015-05-12 22:18:56 -04:00
jwilson
994b8a387e Encode whitespace as a component. 2015-05-12 20:58:57 -04:00
Jesse Wilson
3025bbaf92 Merge pull request #1631 from square/jwilson_0512_use_httpurl
Use HttpUrl in Request.
2015-05-12 13:58:48 -04:00
jwilson
2b236fd66a Use HttpUrl in Request. 2015-05-12 13:39:20 -04:00
Jake Wharton
db7d6477ee Merge pull request #1630 from square/jwilson_0512_query_plus
Always encode space as %20.
2015-05-12 10:19:00 -04:00
jwilson
c449826750 Always encode space as %20.
In queries this means transcoding '+' to '%2B' also.
2015-05-12 08:38:20 -04:00
Jake Wharton
8161318f2f Merge pull request #1629 from square/jwilson_0511_rename_apis
Rename username to encodedUsername and decodeUsername to username
2015-05-11 21:58:36 -04:00
jwilson
5df46746c1 Rename username() to encodedUsername() and decodeUsername() to username().
Basically the decoded form now gets the shorter name.
2015-05-11 21:48:41 -04:00
Jesse Wilson
5a9c9a1687 Merge pull request #1625 from square/jwilson_0511_query_parameters
Implement query parameter management.
2015-05-11 21:23:03 -04:00
jwilson
53ebedf932 Implement query parameter management.
The tricky part of this is '+' and ' ' management.
2015-05-11 20:58:42 -04:00
Jesse Wilson
039614b11c Merge pull request #1624 from square/jwilson_0510_java_dot_net
Compare and contrast with java.net.URL, java.net.URI.
2015-05-11 20:56:36 -04:00
jwilson
1109477958 Compare and contrast with java.net.URL, java.net.URI.
Also offer adapter methods back and forth.
2015-05-11 20:34:20 -04:00
Jake Wharton
a44194de53 Merge pull request #1618 from square/jwilson_0509_ipv6_parsing
Do IPv6 parsing natively.
2015-05-11 15:45:43 -04:00
Jake Wharton
951c6495bc Merge pull request #1627 from alokmenghrajani/alok/bugbounty
Includes this repo in our open source bug bounty program.
2015-05-11 13:57:33 -04:00
Alok Menghrajani
651cdc8320 Includes this repo in our open source bug bounty program. 2015-05-11 10:38:02 -07:00
Jesse Wilson
f4c10476bf Merge pull request #1626 from unguiculus/socketfactory_javadoc
Enhance Javadocs on OkHttpClient.setSocketFactory
2015-05-11 08:52:48 -04:00
Reinhard Naegele
616aafcd49 Enhance Javadocs on OkHttpClient.setSocketFactory 2015-05-11 11:14:46 +02:00
Jesse Wilson
a63805821e Merge pull request #1621 from square/jwilson_0510_decompose
Use lists to model paths and queries.
2015-05-10 23:13:44 -04:00