1
0
mirror of https://github.com/square/okhttp.git synced 2025-11-27 18:21:14 +03:00
Commit Graph

52 Commits

Author SHA1 Message Date
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
Jake Wharton
1482bc4032 [maven-release-plugin] prepare for next development iteration 2013-05-11 20:56:21 -07:00
Jake Wharton
34049c1c0f [maven-release-plugin] prepare release parent-1.0.2 2013-05-11 20:56:12 -07:00
Jake Wharton
7f4d253579 Add some tests for the Apache wrapper. 2013-05-06 16:53:59 -07:00
Jake Wharton
d49ddf3414 [maven-release-plugin] prepare for next development iteration 2013-05-06 09:19:55 -07:00
Jake Wharton
66544feab6 [maven-release-plugin] prepare release parent-1.0.1 2013-05-06 09:19:41 -07:00
Jake Wharton
bd2cac58f3 [maven-release-plugin] prepare for next development iteration 2013-05-06 07:01:00 -07:00
Jake Wharton
d95ecff542 [maven-release-plugin] prepare release parent-1.0.0 2013-05-06 07:00:47 -07:00