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
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
cc38140be4
Added support for http/2 draft 12, which is incompatible with previous priority schemes.
2014-05-04 11:53:15 -07:00
Adrian Cole
bdf42b20e8
Add --frames arg to okcurl, which sends HTTP/2 frame metadata to STDERR.
2014-04-26 11:15:30 -07: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
e76f8f651d
Use 'Protocol' to describe framing.
...
Drop setTransports/getTransports which was deprecated in favor
of protocols.
Rename setFollowProtocolRedirects to setFollowSslRedirects. I decided
to use SSL rather than TLS for consistency with nearby APIs.
2014-04-18 22:51:36 -04:00
Jesse Wilson
ab4927b857
Hide Protocol's internal byte string.
2014-04-18 20:46:54 -04:00
Jesse Wilson
9d22181146
Delete Response.Body.ready() which didn't make much sense.
...
Also clean up some code to use more Okio.
2014-04-18 01:05:27 -04:00
Jesse Wilson
34ab38d636
Make Source the main type in Response.Body.
2014-04-17 20:19:37 -04:00
Jesse Wilson
2dd62d46cb
Merge pull request #684 from square/jwilson_0413_switch_to_okio
...
Switch to Okio.
2014-04-16 00:08:07 -04:00
Jesse Wilson
b242024216
Switch to Okio.
...
This depends on a new method, Buffer.copy() not included in Okio 0.5.
We may need to wait for an Okio 0.6 before merging this.
2014-04-15 23:59:06 -04:00
Adrian Cole and Josh Humphries and Scott Blum
1fd77e07c4
okcurl --insecure means allow any hostname.
2014-04-15 12:19:16 -04:00
Jesse Wilson
4fa4694839
Don't require OkBuffer callers to cast.
...
The casting masks bugs. Instead accept a long and do a range check in
OkBuffer.
2014-03-01 09:34:26 -05:00
jwilson
e7354e311c
Rename OkBuffer.byteCount() to size().
...
Continue to use byteCount as a parameter name wherever we're
referring to the number of bytes to read or write.
2014-02-25 21:19:08 -05:00
jwilson
416e59e219
Death to ByteArrayPool.
...
Murdering this was the motivation of the entire Okio refactor.
2014-02-23 18:44:23 -05:00
jwilson
84184afdb2
Use Sink in HttpEngine.
2014-02-23 18:13:58 -05:00
Adrian Cole
9080b73109
Added blocking api per #405 .
2014-02-22 12:32:56 -08:00
Jake Wharton
334584b834
Add body support to OkCurl. Introduce tests.
2014-02-14 09:02:08 -08:00
Adrian Cole
6587a862cf
Add -X to okcurl, permitting HEAD requests.
2014-02-11 09:04:18 -08:00
Jake Wharton
acd45e124e
Initial implementation of an OkHttp-backed curl clone.
2014-02-08 17:39:37 -05:00