1
0
mirror of https://github.com/square/okhttp.git synced 2025-11-26 06:43:09 +03:00
Commit Graph

59 Commits

Author SHA1 Message Date
Jesse Wilson
c8bd6f834d Merge pull request #1555 from nfuller/AggressiveUncaughtExceptionHandler
Install an UncaughtExceptionHandler during tests
2015-05-01 10:54:41 -04:00
Jake Wharton
9b8ea972bf Add a test for case insensitive content type matching. 2015-04-17 10:30:39 -04:00
Noriyoshi Fukuzaki
8bce6897f9 fixed a bug that content type is compared by case sensitive 2015-04-17 15:54:10 +09:00
Neil Fuller
4e08085cc8 Install an UncaughtExceptionHandler during tests
This is to make the tests more brittle around uncaught exceptions
as they are on Android. No uncaught exceptions should escape.
2015-04-14 16:55:26 +01:00
jwilson
0237d3c3f2 [maven-release-plugin] prepare for next development iteration 2015-03-16 22:28:12 -04:00
jwilson
c49eedeba3 [maven-release-plugin] prepare release parent-2.3.0 2015-03-16 22:28:09 -04:00
Neil Fuller
6ca86d4de1 Source-incompatible: ResponseBody methods throw IOException
This is a binary-compatible change, but code that currently calls
ResponseBody [contentLength()|byteStream()|source()|charStream()]
that doesn't necessarily catch or declare IOException will need
to with this change.

These methods could be performing I/O (opening streams, etc.).
Throwing IOException seems reasonable in this case.

contentType() and charset() have not been changed.
2015-01-09 15:32:24 +00:00
Jake Wharton
5355762a6f Rename play to start. 2015-01-04 23:17:42 -08:00
Jake Wharton
8b6aa0dca5 Use a Buffer for body contents. 2015-01-02 14:03:25 -08:00
Jesse Wilson
1d86439e90 [maven-release-plugin] prepare for next development iteration 2014-12-30 21:52:35 -05:00
Jesse Wilson
6aef5ab3c5 [maven-release-plugin] prepare release parent-2.2.0 2014-12-30 21:52:33 -05:00
Jake Wharton
15c81fdfc2 Normalize caching size in loop-local variable.
This was present in a bunch of loops, but not all and not consistently. After fixing two, I figured that I would normalize them all under the umbrella of uniformity and being lazy (only lookup up the value once if it never changes).
2014-12-24 11:33:14 -08:00
Jake Wharton
789b536cb3 Working towards 2.2.0. 2014-11-29 18:15:31 -08:00
Jesse Wilson
ec1b266f1d [maven-release-plugin] prepare for next development iteration 2014-11-05 02:12:03 -05:00
Jesse Wilson
7b6771bb29 [maven-release-plugin] prepare release parent-2.1.0-RC1 2014-11-05 02:12:01 -05:00
Jesse Wilson
0316426ecf Bump pom versions to 2.1.0-SNAPSHOT. 2014-11-05 00:21:52 -05:00
Jake Wharton
b16c9f29a8 Support overriding content type via explicit header. 2014-08-19 09:16:58 -07:00
Jesse Wilson
f2d5fcbd40 [maven-release-plugin] prepare for next development iteration 2014-06-21 00:02:22 -04:00
Jesse Wilson
a3c18f69c9 [maven-release-plugin] prepare release parent-2.0.0 2014-06-21 00:02:19 -04:00
Jesse Wilson
2cea341be1 [maven-release-plugin] prepare for next development iteration 2014-06-11 01:36:58 -04:00
Jesse Wilson
f171096b11 [maven-release-plugin] prepare release parent-2.0.0-RC2 2014-06-11 01:34:55 -04:00
Jesse Wilson
e870d2645a Build Javadoc for OkUrlFactory and OkApacheClient.
Also create a permanent URL for 1.x Javadoc.
2014-05-24 17:35:20 -04:00
Jesse Wilson
cc92c4cecc [maven-release-plugin] prepare for next development iteration 2014-05-24 02:03:47 -04:00
Jesse Wilson
8dcc74d339 [maven-release-plugin] prepare release parent-2.0.0-RC1 2014-05-24 02:03:37 -04:00
Jesse Wilson
9fcb67db2f Rename Request.Body to RequestBody and Response.Body to ResponseBody.
Compelling alternative is ReadableBody and WritableBody, or BodySource and BodySink.
Which in theory permits reuse for serverside body makers. But I don't like those names
as much.
2014-05-10 08:26:44 -04:00
Adrian Cole
499f402d05 Merge pull request #764 from square/adrian.callfusion
Merge Job into Call. CallTest = AsyncApiTest + SyncApiTest
2014-04-25 13:00:59 -07:00
Adrian Cole
63d4dfaaa6 Merge Job into Call. CallTest = AsyncApiTest + SyncApiTest. 2014-04-25 11:13:39 -07:00
Jake Wharton
7bfcaa60e2 Use more convenience methods from Okio 0.8.0. 2014-04-25 09:23:34 -07:00
Jesse Wilson
307c7a144a Scrub StatusLine from the public API.
The status line is an unnecessary grouping of three otherwise-independent
fields: the protocol, code and message.

Combining them in the API doesn't provide much value. In SPDY and HTTP/2
these are broken apart anyway.
2014-04-19 15:28:40 -04:00
Jesse Wilson
62a7ea2d20 Make Buffer the body type in MockResponse. 2014-04-17 20:19:16 -04:00
Jake Wharton
b8e50f57d3 Update OkApacheClient to use new API. 2014-04-17 14:52:36 -07:00
Jake Wharton
faea360ddf Toward a 2.0! 2014-01-11 18:59:47 -08:00
Jake Wharton
ca7d09b4e8 [maven-release-plugin] prepare for next development iteration 2013-08-23 23:19:52 -07:00
Jake Wharton
4eb81fee1f [maven-release-plugin] prepare release parent-1.2.1 2013-08-23 23:19:48 -07:00
Jake Wharton
db3b3f4d2a [maven-release-plugin] prepare for next development iteration 2013-08-12 00:01:30 -07:00
Jake Wharton
f7699d9243 [maven-release-plugin] prepare release parent-1.2.0 2013-08-12 00:01:26 -07:00
Jake Wharton
bc3aa64462 Revert "[maven-release-plugin] prepare release parent-1.2"
This reverts commit ad928c668d.
2013-08-11 23:45:35 -07:00
jwilson
3626d69813 [maven-release-plugin] prepare for next development iteration 2013-08-11 10:30:12 -04:00
jwilson
ad928c668d [maven-release-plugin] prepare release parent-1.2 2013-08-11 10:30:06 -04:00
jwilson
8535f2447c Repackage mockwebserver in com.squareup.okhttp.mockwebserver. 2013-08-05 18:04:25 -04:00
Kristopher Wuollett
a87b569d01 Added check for length < 0 for transparent gzip response.
The documentation for org.apache.http.HttpEntity::getContentLength()
states that a negative number will be returned when the length of the
content is not known.
2013-07-12 00:06:21 -07:00
Kristopher Wuollett
8035fda72f Added contentType/Encoding to HttpResponse's Entity.
Clients should expect that OkHttpClient HttpResponse Entity's contentType
and contentEncoding are not null when the headers are present.
2013-07-11 23:02:47 -07:00
jwilson
5f87fc19ab Introduce a Policy interface between engine and connection.
This breaks the direct dependency from HttpEngine to
HttpURLConnectionImpl. With this dependency broken, we
can start to use HttpEngine directly from Dispatcher and
Job.
2013-07-09 01:57:50 -04:00
Jake Wharton
1d33ae5968 Merge pull request #232 from square/jw/apache-thangs
Request entity tests for the Apache client shim.
2013-07-04 00:34:20 -07:00
Jake Wharton
53e12cca33 Request entity tests for the Apache client shim. 2013-07-04 00:03:28 -07:00
jwilson
ad5ac4a57f [maven-release-plugin] prepare for next development iteration 2013-06-23 20:01:05 -04:00
jwilson
d439855a9d [maven-release-plugin] prepare release parent-1.1.1 2013-06-23 20:01:02 -04:00
jwilson
5516526004 [maven-release-plugin] prepare for next development iteration 2013-06-15 20:28:32 -04:00
jwilson
20f7eebbf5 [maven-release-plugin] prepare release parent-1.1.0 2013-06-15 20:28:28 -04:00
Jake Wharton
f163915346 Null-check request entity since it might not be present.
Closes #198.
2013-05-27 14:53:16 -07:00