fetch -> http get and post -> http post (#7796)

# Updated description by @rgwood

This PR changes `fetch` to `http get` and `post` to `http post`. `fetch`
and `post` are now deprecated. [I surveyed people on
Discord](https://discord.com/channels/601130461678272522/601130461678272524/1065706282566307910)
and users strongly approved of this change.

# Original Description
This PR is related to #2741 and my first pull request in rust :)

Implemented a new http mod to better http support and alias `fetch` and
`post` commands to `http get` and `http post` respectively.

# User-Facing Changes

Users will be able to use HTTP method via http command, for example
``` shell
> http get "https://www.example.com"
<!doctype html>
<html>
...
```
This commit is contained in:
KazukiY
2023-01-21 03:38:30 +09:00
committed by GitHub
parent bbe694a622
commit cde56741fb
8 changed files with 87 additions and 23 deletions

View File

@ -433,8 +433,9 @@ pub fn create_default_context() -> EngineState {
// Network
bind_command! {
Fetch,
Post,
Http,
HttpGet,
HttpPost,
Url,
UrlBuildQuery,
UrlEncode,