Martin Algesten
2956683870
bump deps, fix clippy warnings
2020-03-14 09:54:54 +01:00
Martin Algesten
753d61b454
Retry some pooled connections failing when server closes. Close #10
...
This is not a perfect solution. It works as long as we are not sending
any body bytes. We discover the error first when attempting to read
the response status line. That means we discover the error after
sending body bytes. To be able to re-send the body, we would need to
introduce a buffer to be able to replay the body on the next
request. We don't currently do that.
2019-10-20 21:36:38 +02:00
Martin Algesten
d9b8fef9a0
Code comment on *mut Stream effect on thread safety
2019-10-20 14:08:21 +02:00
Martin Algesten
acffc5fe13
Rename YoloRead -> ReclaimingRead
...
To better reflect why this is necessary. Also provide a doc comment why this is needed.
2019-10-20 12:31:55 +02:00
Martin Algesten
27be8117b8
Avoid tuple to describe response status line
2019-10-20 12:25:54 +02:00
Martin Algesten
ed999b579d
Removing AsciiString dep and one unsafe
...
This library is not about enforcing standards, so the internal use of
AsciiString for headers and status lines is not necessary.
2019-10-20 10:40:30 +02:00
Chris West (Faux)
a97dfcb408
fix warnings
2019-09-09 19:54:45 +01:00
Martin Algesten
9d069b60b4
fix tests
2019-06-21 15:53:23 +02:00
Chris West (Faux)
ceb7c3ac14
use pub(crate) instead of include!()
2019-05-27 17:44:14 +01:00
Martin Algesten
d4d68ae585
fix parse error when no status text. close #4
2019-03-30 11:29:53 +01:00
Martin Algesten
141668acba
list all header names in request and response
2019-02-03 11:52:05 +05:30
Martin Algesten
cb3d6e8124
resolved url in response
2018-12-20 11:08:39 +01:00
Martin Algesten
07fd4d2cd5
pub(crate) where we can
2018-12-20 11:08:20 +01:00
Martin Algesten
1519dcb0b1
fix redirect logic
2018-12-20 10:54:47 +01:00
Martin Algesten
5ba6b3cd4d
edition 2018, clippy, fmt
2018-12-18 13:17:19 +01:00
Martin Algesten
2c9e62ad8c
fix dealloc issues
2018-10-23 20:18:24 +01:00
Martin Algesten
7ba59abbef
format
2018-09-03 11:22:20 +02:00
Martin Algesten
8decd8e489
auth url test
2018-07-01 18:40:49 +02:00
Martin Algesten
2d2daf58ba
doc
2018-07-01 11:13:21 +02:00
Martin Algesten
03928a05c5
tidy up
2018-07-01 10:19:40 +02:00
Martin Algesten
567a19a656
resp.status() return u16
2018-07-01 09:04:50 +02:00
Martin Algesten
e2686e3bd5
deal with http/1.0 and connection closed
2018-06-30 22:43:47 +02:00
Martin Algesten
552728d1d1
connection pool done
2018-06-30 17:55:11 +02:00
Martin Algesten
4a5944443f
connection pooling
2018-06-30 16:52:54 +02:00
Martin Algesten
317f75f8bf
set unit on response
2018-06-30 14:37:48 +02:00
Martin Algesten
ff582b8c6f
separate out stream
2018-06-30 13:47:37 +02:00
Martin Algesten
b54f747d16
separate out response
2018-06-30 13:36:41 +02:00
Martin Algesten
df83478d48
no body on HEAD request
2018-06-28 10:56:43 +02:00
Martin Algesten
166a7ef629
dont allow reading after limit end
2018-06-26 13:16:51 +02:00
Martin Algesten
cd4a1722fa
reduce dependency tree by features
2018-06-22 15:02:13 +02:00
Martin Algesten
e9ccf1c2cc
use charset encoding for send_string
2018-06-22 11:38:44 +02:00
Martin Algesten
48dcdeb92a
doc fixes
2018-06-22 11:11:59 +02:00
Martin Algesten
28348f1e51
shorter doc examples
2018-06-22 10:57:29 +02:00
Martin Algesten
72bcbe45db
doc fixes
2018-06-22 10:49:03 +02:00
Martin Algesten
5f975270bf
send_str to send_string
2018-06-22 10:13:31 +02:00
Martin Algesten
43585fcdf0
language
2018-06-16 11:07:49 +02:00
Martin Algesten
4791db3a63
more doc
2018-06-16 11:01:28 +02:00
Martin Algesten
ca2e193c84
get underlying error
2018-06-16 10:50:32 +02:00
Martin Algesten
5b237066e5
more doc
2018-06-16 10:50:23 +02:00
Martin Algesten
d1cf9fde3b
more doc
2018-06-14 20:40:06 +02:00
Martin Algesten
d7ebe52df2
Stream::Read -> Stream::Cursor
2018-06-14 17:02:29 +02:00
Martin Algesten
75c8a9bbde
vecread -> cursor
2018-06-14 15:17:40 +02:00
Martin Algesten
d4126027c8
cookie jar
2018-06-12 23:09:17 +02:00
Martin Algesten
729f907fe0
get -> header
2018-06-12 19:48:34 +02:00
Martin Algesten
4ca0914f9a
content limited and bogus chunk
2018-06-12 01:30:46 +02:00
Martin Algesten
7d366c1055
todo
2018-06-10 21:21:07 +02:00
Martin Algesten
4df9876c24
initial commit
2018-06-10 20:42:33 +02:00