fixes #2318
This commit is contained in:
parent
6d9ab125f0
commit
75a56dac98
1 changed files with 2 additions and 2 deletions
|
@ -269,7 +269,7 @@ There are 3 methods for HTTP-headers:
|
||||||
|
|
||||||
```warn header="Headers limitations"
|
```warn header="Headers limitations"
|
||||||
Several headers are managed exclusively by the browser, e.g. `Referer` and `Host`.
|
Several headers are managed exclusively by the browser, e.g. `Referer` and `Host`.
|
||||||
The full list is [in the specification](http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader-method).
|
The full list is [in the specification](https://xhr.spec.whatwg.org/#the-setrequestheader()-method).
|
||||||
|
|
||||||
`XMLHttpRequest` is not allowed to change them, for the sake of user safety and correctness of the request.
|
`XMLHttpRequest` is not allowed to change them, for the sake of user safety and correctness of the request.
|
||||||
```
|
```
|
||||||
|
@ -509,7 +509,7 @@ xhr.onerror = function() {
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
There are actually more events, the [modern specification](http://www.w3.org/TR/XMLHttpRequest/#events) lists them (in the lifecycle order):
|
There are actually more events, the [modern specification](https://xhr.spec.whatwg.org/#events) lists them (in the lifecycle order):
|
||||||
|
|
||||||
- `loadstart` -- the request has started.
|
- `loadstart` -- the request has started.
|
||||||
- `progress` -- a data packet of the response has arrived, the whole response body at the moment is in `response`.
|
- `progress` -- a data packet of the response has arrived, the whole response body at the moment is in `response`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue