Martin Algesten
2956683870
bump deps, fix clippy warnings
2020-03-14 09:54:54 +01:00
Rob Young
28bdb89175
Set a default content type for JSON requests
...
When sending a JSON request a Content-Type of application/json is
usually wanted. This is often set as a default for JSON methods by HTTP
clients so can be confusing when it is not set. However, we do not want
to prevent the user from setting their own Content-Type.
2020-02-06 07:57:00 +01:00
Martin Algesten
4b9cfe2b67
fix clippy lints
2020-01-07 07:59:29 +01:00
Martin Algesten
fef05fd5c9
send_bytes
2019-06-21 15:53:45 +02:00
Chris West (Faux)
ceb7c3ac14
use pub(crate) instead of include!()
2019-05-27 17:44:14 +01:00
Martin Algesten
141668acba
list all header names in request and response
2019-02-03 11:52:05 +05:30
Martin Algesten
1519dcb0b1
fix redirect logic
2018-12-20 10:54:47 +01:00
Martin Algesten
131476bd1a
remove extern crate
2018-12-18 13:45:13 +01:00
Martin Algesten
4151aab3b4
redirects 0
2018-12-18 13:34:05 +01:00
Martin Algesten
a7f54b3647
fix redirect query parameters/hostname
2018-12-04 18:05:19 +01:00
Martin Algesten
b16b14c6aa
simpler api
2018-09-04 10:59:10 +02:00
Martin Algesten
c0384c364b
Url deconstruction function
2018-09-03 11:22:20 +02:00
Martin Algesten
1e536af904
get_url
2018-07-02 12:33:47 +02:00
Martin Algesten
1d541763c6
get_method
2018-07-02 12:32:01 +02:00
Martin Algesten
9cf33365e5
avoid panic for headers
2018-07-02 09:10:31 +02:00
Martin Algesten
fc1d908d9c
less restrictive send() signature
2018-07-01 19:01:59 +02:00
Martin Algesten
51744804da
avoid parsing when setting headers
2018-07-01 18:33:50 +02:00
Martin Algesten
2d2daf58ba
doc
2018-07-01 11:13:21 +02:00
Martin Algesten
4a5944443f
connection pooling
2018-06-30 16:52:54 +02:00
Martin Algesten
c5fb12a1fe
code format
2018-06-30 14:57:22 +02:00
Martin Algesten
317f75f8bf
set unit on response
2018-06-30 14:37:48 +02:00
Martin Algesten
54558fbb26
refactor to body
2018-06-30 14:11:54 +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
f5a4c83819
refactor into unit
2018-06-30 13:05:36 +02:00
Martin Algesten
d3ecb2bae1
method()
2018-06-27 18:07:17 +02:00
Martin Algesten
c5c878caca
better debug formatting of requests
2018-06-22 16:01: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
67e7919b06
remove frivolous mime guessing dep
2018-06-22 10:49:43 +02:00
Martin Algesten
5f975270bf
send_str to send_string
2018-06-22 10:13:31 +02:00
Martin Algesten
9514bd2743
query string test
2018-06-17 00:25:40 +02:00
Martin Algesten
7e3ad42674
content length
2018-06-16 12:35:51 +02:00
Martin Algesten
0d9d5d3096
more doc
2018-06-16 12:07:21 +02:00
Martin Algesten
773c82b4c6
send_payload -> send_body
2018-06-16 11:25:07 +02:00
Martin Algesten
5b237066e5
more doc
2018-06-16 10:50:23 +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
8bc8559c22
repeated headers
2018-06-12 01:30:46 +02:00
Martin Algesten
9852960bd7
auth headers
2018-06-12 01:30:46 +02:00
Martin Algesten
4df9876c24
initial commit
2018-06-10 20:42:33 +02:00