Commit Graph

1198 Commits

Author SHA1 Message Date
Carlo Sciolla
c4627cc882
Custom file upload MIME type (#927)
* Support curl-like syntax for custom MIME type for files

In order to specify a custom MIME type for file uploads, a syntax
similar to that used by cURL is used so that

http -F test_file@/path/to/file.bin;type=application/zip https://...

forwards the user-provided file type if provided, otherwise falling
back to the usual guesswork out of the file extension.
2020-06-08 17:59:41 +02:00
Jakub Roztocil
492687b0da Add stable docs link icon 2020-05-28 14:30:56 +02:00
Jakub Roztocil
caeef2fb7c Use : instead of = in `--format-options 2020-05-28 14:24:15 +02:00
Jakub Roztocil
aae596d472 Improve --format-options error messages 2020-05-27 16:19:32 +02:00
Jakub Roztocil
cb51faec51 pep8 2020-05-27 16:12:31 +02:00
Jakub Roztocil
c2a0cef76e Add --format-options to allow disabling sorting, etc.
#128
2020-05-27 16:01:17 +02:00
Jakub Roztocil
493e98c833 Update CHANGELOG 2020-05-26 10:15:33 +02:00
Jakub Roztocil
ca02e51420 Improve plugin API docs 2020-05-26 10:07:53 +02:00
Jakub Roztocil
cd085cbc0d Refactor built-in plugin registry to avoid circular imports
Fix #925
2020-05-26 10:07:34 +02:00
Jakub Roztocil
27d57ce773 Cleanup 2020-05-23 20:30:25 +02:00
Jakub Roztocil
4c4efff56a Pass cert_reqs to context 2020-05-23 20:19:16 +02:00
Jakub Roztocil
a53505f26e Fix SSL context 2020-05-23 15:01:33 +02:00
Jakub Roztocil
165dc36f8d Add examples 2020-05-23 13:38:28 +02:00
Jakub Roztocil
5df3a91619 Add examples 2020-05-23 13:37:47 +02:00
Jakub Roztocil
7dbceafc01 Add docs for the https command alias 2020-05-23 13:34:59 +02:00
Jakub Roztocil
d62d6a77d1 Add support for --ciphers (#870) 2020-05-23 13:26:06 +02:00
Jakub Roztocil
0a81facccf Str env vars 2020-05-23 12:14:09 +02:00
Jakub Roztocil
3e20ade645 Cleanup & refactor XDG_CONFIG_HOME support 2020-05-23 12:12:35 +02:00
Jakub Roztocil
0c47094109
Update CHANGELOG.rst 2020-05-22 12:38:42 +02:00
Jakub Roztocil
defe4bc76d Fix issue links 2020-05-21 16:03:40 +02:00
Jakub Roztocil
afee6a7970 Added changelog entry for $XDG_CONFIG_HOME support 2020-05-21 15:59:03 +02:00
Jakub Roztocil
7b676dd583 Update ~/.httpie references to ~/.config/httpie 2020-05-21 15:56:53 +02:00
Ash Holland
5af0874ed3
Support (part of) the XDG Base Directory Specification (#920)
On Unix-like systems, the configuration file now lives in
$XDG_CONFIG_HOME/httpie/ by default, not ~/.httpie/ (the behaviour on
Windows is unchanged). The previous location is still checked, in order
to support existing installations.

Searching $XDG_CONFIG_DIRS is still not supported.

Fixes #145; supersedes #436.
2020-05-21 15:50:00 +02:00
Jakub Roztocil
e11a2d1346
Update FUNDING.yml 2020-05-13 21:55:24 +02:00
Jakub Roztocil
b2044fc18d
Update README.rst 2020-04-24 12:15:19 +02:00
Jakob Krigovsky
d9a2d665ad
Fix typo (#898) 2020-04-20 17:46:43 +02:00
Jakob Krigovsky
e83e275dff
Fix spelling of “GitHub” (#899) 2020-04-20 17:45:51 +02:00
Jakub Roztocil
4a99495466
Update CHANGELOG.rst 2020-04-18 20:44:40 +02:00
Jakub Roztocil
495f67229a Fix brew formula 2020-04-18 13:39:17 +02:00
Jakub Roztocil
45b9bae3dc Update brew formula 2020-04-18 13:24:25 +02:00
Jakub Roztocil
774ff148cd 2.2.0-dev 2020-04-18 12:57:56 +02:00
Jakub Roztocil
70a78249c1 2.1.0
#488 #840 #895
2020-04-18 12:54:40 +02:00
Jakub Roztocil
fc85988368 Change default JSON Accept to application/json, */*;q=0.5
See #488
2020-04-18 12:03:38 +02:00
Jakub Roztocil
83bd8059de accept wip 2020-04-18 12:03:37 +02:00
Jakub Roztocil
3af5f1f305 Add an --offline example 2020-04-16 11:47:56 +02:00
Jakub Roztocil
4351650691 Ignore --download with --offline 2020-04-16 11:41:12 +02:00
Jakub Roztocil
770976a66e Add --path-as-is docs 2020-04-16 11:29:58 +02:00
Jakub Roztocil
29b692d597 Add --offline mode docs 2020-04-16 11:29:33 +02:00
Jakub Roztocil
8936d1b71e Add tests for --offline 2020-04-16 11:28:21 +02:00
Jakub Roztocil
4f32b76223 Readme WIP 2020-04-15 18:07:43 +02:00
Jakub Roztocil
c9d770017e Fix 'Too many redirects' error message formatting 2020-04-15 17:43:08 +02:00
Jakub Roztocil
cdf691c212
Change default JSON Accept to application/json, */*;q=0.5
Close #488
2020-04-13 22:12:06 +02:00
Jakub Roztocil
684a4708d7 Add --path-as-is
Close #895
2020-04-13 20:18:56 +02:00
Mio
5754e33a75
Removed duplicate type annotation. (#888) 2020-04-13 18:15:48 +02:00
Doug Beney
14fe7dbb27
apt (#890)
Co-authored-by: Doug Beney <contact@dougie.io>
2020-04-13 18:15:16 +02:00
Jakub Roztocil
3a6ac7d126 Remove unused imports 2020-04-13 17:37:27 +02:00
Jakub Roztocil
e9080e6b22 Build on PRs as well 2020-04-13 17:24:18 +02:00
Jakub Roztocil
c73858b9c3 Update examples 2020-03-27 10:03:30 +01:00
Jakub Roztocil
7340b2b64d Update --download doc 2020-03-27 10:03:30 +01:00
Jakub Roztocil
8d246415fd
2020 2020-03-22 12:29:01 +01:00