mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
port post (#4537)
This restores a basic version of the `post` command. Some source types have been omitted from this first take. I copied from `fetch` and from `post`@0.40.0. Part of #4356
This commit is contained in:
20
docs/commands/post.md
Normal file
20
docs/commands/post.md
Normal file
@ -0,0 +1,20 @@
|
||||
# post
|
||||
Post content to a URL and retrieve data as a table if possible.
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> post <path> <body> {flags}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
* `<path>` the URL to post to
|
||||
* `<body>` the contents of the post body
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
* -u, --user <any>: the username when authenticating
|
||||
* -p, --password <any>: the password when authenticating
|
||||
* -t, --content-type <any>: the MIME type of content to post
|
||||
* -l, --content-length <any>: the length of the content being posted
|
||||
* -r, --raw: return values as a string instead of a table
|
||||
|
Reference in New Issue
Block a user