1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-18 20:40:58 +03:00
Commit Graph

1293 Commits

Author SHA1 Message Date
Jesse Wilson
f171096b11 [maven-release-plugin] prepare release parent-2.0.0-RC2 parent-2.0.0-RC2 2014-06-11 01:34:55 -04:00
Jake Wharton
a3b413dd53 Merge pull request #918 from square/jwilson_0611_scheme
Test bogus scheme.
2014-06-10 21:50:44 -07:00
Jesse Wilson
44300bdf37 Test bogus scheme. 2014-06-11 00:48:55 -04:00
Jesse Wilson
2938800a51 Merge pull request #917 from square/jw/char
Use a character for appending spaces to skip array-based copy path.
2014-06-11 00:45:28 -04:00
Jesse Wilson
a889f71f7c Changelog for 2.0.0-RC2 2014-06-11 00:44:55 -04:00
Jake Wharton
3469c11d3f Use a character for appending spaces to skip array-based copy path. 2014-06-10 21:30:20 -07:00
Jake Wharton
72ef73aba0 Merge pull request #916 from square/jwilson_0610_multipart_post_recipe
Multipart POST example using imgur's API.
2014-06-10 19:33:28 -07:00
Jesse Wilson
beb99dd780 Merge pull request #915 from square/jwilson_0610_useragents
Don't include a weird user-agent in the new API.
2014-06-10 22:31:13 -04:00
Jesse Wilson
543b335640 Multipart POST example using imgur's API. 2014-06-10 22:27:48 -04:00
Jesse Wilson
bdb5c2f4e9 Don't include a weird user-agent in the new API. 2014-06-10 22:26:07 -04:00
Jesse Wilson
71688e6c57 Merge pull request #914 from square/jwilson_0610_headers_of
New API: Headers.of().
2014-06-10 22:16:47 -04:00
Jesse Wilson
97a01311da New API: Headers.of().
Doing anything with multipart makes this necessary.
2014-06-10 22:01:00 -04:00
Jake Wharton
9afa09b446 Merge pull request #913 from square/jwilson_0610_response_after_callback
Keep the response body alive after the callback.
2014-06-10 17:34:08 -07:00
Jake Wharton
ae1e9ce7cd Merge pull request #911 from square/jw/much-sadness
Revert builder-esque return types from OkHttpClient.
2014-06-10 16:59:02 -07:00
Jesse Wilson
aa7e7a751c Keep the response body alive after the callback. 2014-06-10 19:45:49 -04:00
Jake Wharton
1ae96798cb Revert builder-esque return types from OkHttpClient's timeout methods. 2014-06-10 15:08:37 -07:00
Jesse Wilson
ac6ac338a3 Merge pull request #909 from square/jwilson_0609_unbreak_spdy31
Don't skip client stream 1 on SPDY/3.1.
2014-06-10 12:17:17 -04:00
Jesse Wilson
393ad1c5e9 Merge pull request #908 from square/jwilson_0609_blow_up_on_unexpected_request_body
Blow up on an unexpected request body.
2014-06-10 01:11:53 -04:00
Jesse Wilson
c5f1ebac2e Don't skip client stream 1 on SPDY/3.1.
This breaks connectivity to google.com's SPDY/3.1 servers.
2014-06-10 01:10:54 -04:00
Jesse Wilson
adcd50a632 Merge pull request #910 from square/jwilson_0609_npn
Always configure NPN.
2014-06-09 23:44:35 -04:00
Jesse Wilson
51b90a6b5c Always configure NPN.
Without this, we get a hard SSL crash when a server returns NPN
information that was unsolicited.
2014-06-09 22:54:08 -04:00
Jesse Wilson
8f7f3b29a7 Blow up on an unexpected request body. 2014-06-09 22:02:58 -04:00
Jesse Wilson
f5fa80a9b1 Merge pull request #904 from square/jwilson_0608_eat_mimecraft
Eat mimecraft.
2014-06-09 21:52:57 -04:00
Jesse Wilson
0f24a557e1 Merge pull request #906 from lexer/nullable_content_type
Allow optional content-type for RequestBody.create with file param
2014-06-09 14:51:50 -04:00
Jesse Wilson
3ae7f7f966 Convert mimecraft types to use OkHttp types: RequestBody, MediaType.
This drops the Part type, replacing it with Headers+Body in MultipartBuilder.
2014-06-09 14:50:36 -04:00
Alexey Zakharov
8a43a25335 Allow optional content-type for RequestBody.create with file param 2014-06-09 11:38:12 -07:00
Jesse Wilson
6a2242ce30 Import mimecraft as-is. 2014-06-09 00:53:51 -04:00
Jake Wharton
349251ffb6 Merge pull request #900 from square/jwilson_0608_nullable_content_type
Make the content type optional.
2014-06-08 21:46:08 -07:00
Jake Wharton
b4a3ce52b6 Merge pull request #901 from square/jwilson_0608_headers_recipe
Add a Headers recipe.
2014-06-08 11:22:51 -07:00
Jesse Wilson
5641d02a8d Add a Headers recipe. 2014-06-08 12:47:10 -04:00
Jesse Wilson
baba1c090d Make the content type optional.
https://github.com/square/okhttp/issues/899
2014-06-08 11:29:41 -04:00
Jake Wharton
ab9e16026c Merge pull request #897 from square/jwilson_0605_regression_connection_close
Fix a regression in connection cleanup.
2014-06-06 07:51:41 -07:00
Jesse Wilson
30b0fd62d2 Fix a regression in connection cleanup.
We don't test that connections actually get closed, and this was
broken by a refactoring that dropped close() on Connection.
2014-06-06 00:29:19 -07:00
Adrian Cole
c89ca72a9c Merge pull request #887 from square/adrian.write-continuations
Write continuation frames when hpacked data is larger than 16383 bytes.
2014-06-04 09:20:55 -07:00
Adrian Cole
0c837a4f1c Write continuation frames when hpacked data is larger than 16383 bytes.
Change max frame size to a constant.
2014-06-04 07:47:08 -07:00
Jake Wharton
848ad4a5c3 Merge pull request #893 from square/jwilson_0603_configure_timeouts_recipe
Recipe for configuring timeouts.
2014-06-03 23:51:35 -07:00
Jake Wharton
896f4fd0ce Merge pull request #892 from square/jwilson_0603_per_call_recipe
Recipe to clone OkHttpRequest for per-request config changes.
2014-06-03 23:51:10 -07:00
Jesse Wilson
ea9103a243 Recipe for configuring timeouts. 2014-06-03 23:39:22 -07:00
Jesse Wilson
22bb048e13 Recipe to clone OkHttpRequest for per-request config changes. 2014-06-03 23:32:10 -07:00
Jesse Wilson
f17f74f894 Merge pull request #889 from square/jwilson_0601_cancel_example
Cancel recipe.
2014-06-02 03:49:00 -04:00
Jesse Wilson
4c77a1cc53 Cancel recipe. 2014-06-02 00:48:12 -07:00
Jesse Wilson
3af2131c72 Merge pull request #888 from square/jwilson_0601_file_per_example
Give each recipe its own file.
2014-06-02 03:38:28 -04:00
Jesse Wilson
f7c3bad89f Give each recipe its own file. 2014-06-01 19:31:13 -04:00
Adrian Cole
ae8d33170e Merge pull request #886 from square/jwilson_0531_post_recipes
Some POST samples.
2014-05-31 19:03:06 -07:00
Jesse Wilson
1ba78fa29d Some POST samples. 2014-05-31 10:01:19 -04:00
Jake Wharton
6a3bdc60a9 Merge pull request #882 from square/jw/okio-low-hanging-fruit
Leverage Okio for yanking a full byte[].
2014-05-30 18:36:25 -07:00
Jake Wharton
9598d1dec5 Merge pull request #883 from square/jw/code-style
Update test to JUnit 4, Square code style.
2014-05-30 18:35:40 -07:00
Jake Wharton
f83d7befce Merge pull request #884 from square/jwilson_0529_is_successful
Add missing copyright headers.
2014-05-30 18:34:59 -07:00
Jesse Wilson
2ec2027fc0 Add missing copyright headers.
https://github.com/square/okhttp/issues/880
2014-05-30 21:05:57 -04:00
Jake Wharton
91f36c75af Update test to JUnit 4, Square code style. 2014-05-30 16:08:49 -07:00