jwilson
c16436f8b2
Use BufferedSink in HttpConnection.
2014-02-23 12:55:03 -05:00
Adrian Cole
2ea11f66b8
Merge pull request #555 from square/jwison_0223_buffered_sink_in_spdy
...
Use BufferedSink in SPDY and HTTP/2.
2014-02-23 09:00:12 -08:00
jwilson
ab78dadb4b
Use BufferedSink in SPDY and HTTP/2.
2014-02-23 11:42:59 -05:00
Adrian Cole
877de57447
Merge pull request #554 from square/jwilson_0223_equals_hashcode
...
More equals, hashCode and toString.
2014-02-23 08:35:45 -08:00
jwilson
ef1fdccbeb
More equals, hashCode and toString.
2014-02-23 10:01:51 -05:00
Adrian Cole
0a26d85a55
Merge pull request #553 from square/jwilson_0222_hex
...
OkBuffer toString and hex.
2014-02-22 13:17:34 -08:00
Jesse Wilson
08ce8f7515
Merge pull request #552 from square/adrian.sync-api
...
Added blocking alternative to HttpUrlConnection
2014-02-22 16:15:38 -05:00
jwilson
095448552e
OkBuffer toString and hex.
2014-02-22 16:08:25 -05:00
Adrian Cole
9080b73109
Added blocking api per #405 .
2014-02-22 12:32:56 -08:00
Jesse Wilson
b0ed4b34ec
Merge pull request #551 from square/jwilson_0222_okio
...
Okio module.
2014-02-22 14:38:05 -05:00
jwilson
2581c36905
Okio module.
2014-02-22 14:23:52 -05:00
Jesse Wilson
90450e5713
Merge pull request #550 from square/jwilson_0222_buffer_interfaces
...
Interfaces for BufferedSource and BufferedSink.
2014-02-22 13:57:39 -05:00
jwilson
7995b46276
Interfaces for BufferedSource and BufferedSink.
...
This means OkBuffer implements these interfaces directly.
That's much simpler for code that sometimes wants to access
an in-memory OkBuffer and sometimes wants to access an
I/O backed stream like a socket.
2014-02-22 13:51:22 -05:00
Jesse Wilson
59b8adc74b
Merge pull request #549 from square/adrian.whoops-deadline
...
Fix the build wrt deadline
2014-02-22 13:03:09 -05:00
Adrian Cole
5e220ac516
Fix flakey SpdyConnection tests that closed before reading all frames.
2014-02-22 09:37:37 -08:00
Adrian Cole
5ce9623515
Fix the build wrt deadline.
2014-02-22 08:58:54 -08:00
Adrian Cole
9dfeda588a
Merge pull request #548 from square/jwilson_0222_self_terminating_gzips
...
Make GzipSource exhaust its input.
2014-02-22 08:14:28 -08:00
Adrian Cole
ef370dcc80
Merge pull request #547 from square/jwilson_0222_invalid_host
...
Don't do DNS lookups on null hosts.
2014-02-22 08:13:00 -08:00
Adrian Cole
e08668065b
Merge pull request #546 from square/jwilson_0224_drop_readlowercase
...
Drop readLowerCase.
2014-02-22 08:12:20 -08:00
Adrian Cole
8c154a34c4
Merge pull request #545 from square/jwilson_0221_move_deadlines
...
Deadlines are per-stream, not per-operation.
2014-02-22 08:06:44 -08:00
jwilson
6ad4d9856a
Make GzipSource exhaust its input.
...
https://github.com/square/okhttp/issues/507
2014-02-22 10:51:22 -05:00
jwilson
8377182cfe
Don't do DNS lookups on null hosts.
2014-02-22 09:12:39 -05:00
jwilson
686133cc89
Drop readLowerCase.
2014-02-22 08:51:52 -05:00
jwilson
cca9142903
Deadlines are per-stream, not per-operation.
2014-02-22 00:45:10 -05:00
Adrian Cole
dce4bb2c13
Merge pull request #544 from square/jwilson_0221_okbuffer_refactor
...
Small OkBuffer API changes.
2014-02-21 21:39:30 -08:00
jwilson
f5d07820a2
Small OkBuffer API changes.
2014-02-22 00:17:26 -05:00
Jake Wharton
f41e2c8c04
Deprecate G+ community in favor of StackOverflow.
2014-02-21 00:08:02 -08:00
Jesse Wilson
9e8b022f08
Merge pull request #539 from square/adrian.unthrottle-client-reads
...
When a SPDY client, do not flow-control the server
2014-02-19 23:49:30 -05:00
Adrian Cole
a3e9485b81
When a SPDY client, use a large flow-control window.
2014-02-19 20:26:41 -08:00
Jesse Wilson
0effa60031
Merge pull request #538 from square/jwilson_0219_deflatersink
...
DeflaterSink.
2014-02-19 08:16:47 -05:00
Adrian Cole
e9d95f5b8b
Animal Sniffer
2014-02-18 22:04:35 -08:00
Jesse Wilson
ad0ff5847c
Merge pull request #537 from square/adrian.remove-old-header
...
Remove OkHttp-Selected-Transport header
2014-02-19 00:47:56 -05:00
Adrian Cole
ccd54b7025
Removed OkHttp-Selected-Transport header.
2014-02-18 21:35:07 -08:00
jwilson
60e68ab198
DeflaterSink.
2014-02-19 00:27:32 -05:00
Adrian Cole
15fff4c325
Merge pull request #536 from square/jwilson_0217_source_in_engine
...
Use OkBuffer+Source in HttpEngine.
2014-02-18 08:27:20 -08:00
jwilson
a669069599
Use OkBuffer+Source in HttpEngine.
2014-02-18 02:33:00 -05:00
Jake Wharton
625909bcd0
Merge pull request #533 from square/jwilson_0215_rethink_recycle
...
Move connection pooling logic.
2014-02-17 17:13:53 -08:00
Jake Wharton
000e62ec37
Merge pull request #534 from square/jwilson_0217_buffered_sink
...
BufferedSink.
2014-02-17 15:37:05 -08:00
Jesse Wilson
5be60e4b70
Merge pull request #535 from square/jwilson_0217_base64
...
Give Base64 lots of love.
2014-02-17 18:33:09 -05:00
jwilson
167245bb4a
Give Base64 lots of love.
...
Fix some bugs, such as decoding of input that contains lots
of padding or whitespace. See
https://code.google.com/p/android/issues/detail?id=66078
Improve performance by correctly guessing the output array
size whenever the input doesn't contain whitespace.
Build Base64 into ByteString, and expose it through there
only.
Use more reasonable names in the implementation.
2014-02-17 13:53:39 -05:00
jwilson
415841c48f
BufferedSink.
2014-02-17 09:18:53 -05:00
jwilson
dac5aed3d5
Move connection pooling logic.
...
Previously we had this ugly, awkward release() method that
attempted to manage connection pooling, discarding streams
for caching, and closing broken streams.
Move connection reuse to HttpConnection, with policy informed
by HttpEngine. It specifies what to do when the connection
becomes idle: pool, close or hold. The connection does what
it's told.
2014-02-15 18:44:43 -05:00
Jesse Wilson
ce76caedda
Merge pull request #532 from square/jwilson_0215_statemachine
...
Enforce the implicit state machine in HttpConnection.
2014-02-15 13:30:23 -05:00
jwilson
322e9f3700
Enforce the implicit state machine in HttpConnection.
...
This checks that calls into HttpConnection occur in the correct
sequence.
Once this is merged I can follow up by making HttpConnection
responsible for its own pooling rather than relying on HttpEngine
to do that work.
2014-02-15 13:30:15 -05:00
Jesse Wilson
4caed5ca3b
Merge pull request #530 from square/jwilson_0214_http_connection
...
Split HttpTransport in two.
2014-02-14 16:56:50 -05:00
jwilson
504b9cf55a
Split HttpTransport in two.
...
The new (awkwardly-named) HttpConnection class now owns the
socket, and stays around between HTTP requests. It matches
SpdyConnection in lifecycle: it is tied to the socket.
The HTTP transport class is a dumb adapter that adapts the
protocol-specific decisions (chunked-encoding, content-length
stuff).
This should make it possible to make significant simplifications
to how connection recycling works: in a follow up change the
HttpConnection class will know when it can be recycled and take
that action automatically.
2014-02-14 16:23:39 -05:00
Jesse Wilson
efaf141801
Merge pull request #527 from square/jw/okcurl-bodies
...
Add body support to OkCurl. Introduce tests.
2014-02-14 15:27:10 -05:00
Jake Wharton
334584b834
Add body support to OkCurl. Introduce tests.
2014-02-14 09:02:08 -08:00
Jesse Wilson
3265dedc64
Merge pull request #529 from square/jw/java7
...
Make Java 7 build requirement more clear.
2014-02-14 08:01:27 -05:00
Jake Wharton
622e6a23cc
Make Java 7 build requirement more clear.
2014-02-13 22:59:07 -08:00