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

8 Commits

Author SHA1 Message Date
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
53e12cca33 Request entity tests for the Apache client shim. 2013-07-04 00:03:28 -07: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
7f4d253579 Add some tests for the Apache wrapper. 2013-05-06 16:53:59 -07:00
Jake Wharton
d60c084b99 Add Apache HttpClient implementation which maps to OkHttp.
Refs #17.
2013-03-26 13:27:46 -04:00