mirror of
https://github.com/httpie/cli.git
synced 2024-11-24 08:22:22 +02:00
Use httpie.io/docs everywhere
[skip ci]
This commit is contained in:
parent
727b8a2c05
commit
fe96b2af20
@ -311,7 +311,7 @@ class HTTPieArgumentParser(argparse.ArgumentParser):
|
|||||||
self.error('Request body (from stdin, --raw or a file) and request '
|
self.error('Request body (from stdin, --raw or a file) and request '
|
||||||
'data (key=value) cannot be mixed. Pass '
|
'data (key=value) cannot be mixed. Pass '
|
||||||
'--ignore-stdin to let key/value take priority. '
|
'--ignore-stdin to let key/value take priority. '
|
||||||
'See https://httpie.org/doc#scripting for details.')
|
'See https://httpie.io/docs#scripting for details.')
|
||||||
|
|
||||||
def _guess_method(self):
|
def _guess_method(self):
|
||||||
"""Set `args.method` if not specified to either POST or GET
|
"""Set `args.method` if not specified to either POST or GET
|
||||||
|
@ -30,7 +30,7 @@ from ..ssl import AVAILABLE_SSL_VERSION_ARG_MAPPING, DEFAULT_SSL_CIPHERS
|
|||||||
|
|
||||||
parser = HTTPieArgumentParser(
|
parser = HTTPieArgumentParser(
|
||||||
prog='http',
|
prog='http',
|
||||||
description=f'{__doc__.strip()} <https://httpie.org>',
|
description=f'{__doc__.strip()} <https://httpie.io>',
|
||||||
epilog=dedent('''
|
epilog=dedent('''
|
||||||
For every --OPTION there is also a --no-OPTION that reverts OPTION
|
For every --OPTION there is also a --no-OPTION that reverts OPTION
|
||||||
to its default value.
|
to its default value.
|
||||||
@ -96,7 +96,7 @@ positional.add_argument(
|
|||||||
|
|
||||||
':' HTTP headers:
|
':' HTTP headers:
|
||||||
|
|
||||||
Referer:http://httpie.org Cookie:foo=bar User-Agent:bacon/1.0
|
Referer:https://httpie.io Cookie:foo=bar User-Agent:bacon/1.0
|
||||||
|
|
||||||
'==' URL parameters to be appended to the request URI:
|
'==' URL parameters to be appended to the request URI:
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ def get_httpie_session(
|
|||||||
|
|
||||||
|
|
||||||
class Session(BaseConfigDict):
|
class Session(BaseConfigDict):
|
||||||
helpurl = 'https://httpie.org/doc#sessions'
|
helpurl = 'https://httpie.io/docs#sessions'
|
||||||
about = 'HTTPie session file'
|
about = 'HTTPie session file'
|
||||||
|
|
||||||
def __init__(self, path: Union[str, Path]):
|
def __init__(self, path: Union[str, Path]):
|
||||||
|
Loading…
Reference in New Issue
Block a user