commit
fde93c9a22
1 changed files with 2 additions and 2 deletions
|
@ -143,7 +143,7 @@ We can use `xhr.responseType` property to set the response format:
|
|||
|
||||
- `""` (default) -- get as string,
|
||||
- `"text"` -- get as string,
|
||||
- `"arraybuffer"` -- get as `ArrayBuffer` (for binary data, see chapter <info:arraybuffer-and-views>),
|
||||
- `"arraybuffer"` -- get as `ArrayBuffer` (for binary data, see chapter <info:arraybuffer-binary-arrays>),
|
||||
- `"blob"` -- get as `Blob` (for binary data, see chapter <info:blob>),
|
||||
- `"document"` -- get as XML document (can use XPath and other XML methods),
|
||||
- `"json"` -- get as JSON (parsed automatically).
|
||||
|
@ -261,7 +261,7 @@ There are 3 methods for HTTP-headers:
|
|||
```
|
||||
|
||||
````warn header="Can't remove a header"
|
||||
Another peciliarity of `XMLHttpRequest` is that one can't undo `setRequestHeader`.
|
||||
Another peculiarity of `XMLHttpRequest` is that one can't undo `setRequestHeader`.
|
||||
|
||||
Once the header is set, it's set. Additional calls add information to the header, don't overwrite it.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue