docs: UploadData does not have contentType (#19026)
This commit is contained in:
parent
23b8c9c917
commit
1d8e16bc6e
5 changed files with 7 additions and 7 deletions
|
@ -229,9 +229,7 @@ should be called with either a `String` or an object that has the `data`,
|
||||||
* `url` String
|
* `url` String
|
||||||
* `method` String (optional)
|
* `method` String (optional)
|
||||||
* `session` Object (optional)
|
* `session` Object (optional)
|
||||||
* `uploadData` Object (optional)
|
* `uploadData` [ProtocolResponseUploadData](structures/protocol-response-upload-data.md) (optional)
|
||||||
* `contentType` String - MIME type of the content.
|
|
||||||
* `data` String - Content to be sent.
|
|
||||||
* `completion` Function (optional)
|
* `completion` Function (optional)
|
||||||
* `error` Error
|
* `error` Error
|
||||||
|
|
||||||
|
|
4
docs/api/structures/protocol-response-upload-data.md
Normal file
4
docs/api/structures/protocol-response-upload-data.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# ProtocolResponseUploadData Object
|
||||||
|
|
||||||
|
* `contentType` String - MIME type of the content.
|
||||||
|
* `data` String - Content to be sent.
|
|
@ -28,9 +28,7 @@
|
||||||
* `session` Session (optional) - The session used for requesting URL, by default
|
* `session` Session (optional) - The session used for requesting URL, by default
|
||||||
the HTTP request will reuse the current session. Setting `session` to `null`
|
the HTTP request will reuse the current session. Setting `session` to `null`
|
||||||
would use a random independent session. This is only used for URL responses.
|
would use a random independent session. This is only used for URL responses.
|
||||||
* `uploadData` Object (optional) - The data used as upload data. This is only
|
* `uploadData` ProtocolResponseUploadData (optional) - The data used as upload data. This is only
|
||||||
used for URL responses when `method` is `"POST"`.
|
used for URL responses when `method` is `"POST"`.
|
||||||
* `contentType` String - MIME type of the content.
|
|
||||||
* `data` String - Content to be sent.
|
|
||||||
|
|
||||||
[net-error]: https://code.google.com/p/chromium/codesearch#chromium/src/net/base/net_error_list.h
|
[net-error]: https://code.google.com/p/chromium/codesearch#chromium/src/net/base/net_error_list.h
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
# UploadData Object
|
# UploadData Object
|
||||||
|
|
||||||
* `contentType` String (optional) - Content type of the content to be sent.
|
|
||||||
* `bytes` Buffer - Content being sent.
|
* `bytes` Buffer - Content being sent.
|
||||||
* `file` String (optional) - Path of file being uploaded.
|
* `file` String (optional) - Path of file being uploaded.
|
||||||
* `blobUUID` String (optional) - UUID of blob data. Use [ses.getBlobData](../session.md#sesgetblobdataidentifier) method
|
* `blobUUID` String (optional) - UUID of blob data. Use [ses.getBlobData](../session.md#sesgetblobdataidentifier) method
|
||||||
|
|
|
@ -95,6 +95,7 @@ auto_filenames = {
|
||||||
"docs/api/structures/process-metric.md",
|
"docs/api/structures/process-metric.md",
|
||||||
"docs/api/structures/product.md",
|
"docs/api/structures/product.md",
|
||||||
"docs/api/structures/protocol-request.md",
|
"docs/api/structures/protocol-request.md",
|
||||||
|
"docs/api/structures/protocol-response-upload-data.md",
|
||||||
"docs/api/structures/protocol-response.md",
|
"docs/api/structures/protocol-response.md",
|
||||||
"docs/api/structures/rectangle.md",
|
"docs/api/structures/rectangle.md",
|
||||||
"docs/api/structures/referrer.md",
|
"docs/api/structures/referrer.md",
|
||||||
|
|
Loading…
Reference in a new issue