docs: UploadData does not have contentType (#19026)

This commit is contained in:
Cheng Zhao 2019-06-29 03:19:01 +09:00 committed by Shelley Vohr
parent 23b8c9c917
commit 1d8e16bc6e
5 changed files with 7 additions and 7 deletions

View file

@ -229,9 +229,7 @@ should be called with either a `String` or an object that has the `data`,
* `url` String
* `method` String (optional)
* `session` Object (optional)
* `uploadData` Object (optional)
* `contentType` String - MIME type of the content.
* `data` String - Content to be sent.
* `uploadData` [ProtocolResponseUploadData](structures/protocol-response-upload-data.md) (optional)
* `completion` Function (optional)
* `error` Error

View file

@ -0,0 +1,4 @@
# ProtocolResponseUploadData Object
* `contentType` String - MIME type of the content.
* `data` String - Content to be sent.

View file

@ -28,9 +28,7 @@
* `session` Session (optional) - The session used for requesting URL, by default
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.
* `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"`.
* `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

View file

@ -1,6 +1,5 @@
# UploadData Object
* `contentType` String (optional) - Content type of the content to be sent.
* `bytes` Buffer - Content being sent.
* `file` String (optional) - Path of file being uploaded.
* `blobUUID` String (optional) - UUID of blob data. Use [ses.getBlobData](../session.md#sesgetblobdataidentifier) method

View file

@ -95,6 +95,7 @@ auto_filenames = {
"docs/api/structures/process-metric.md",
"docs/api/structures/product.md",
"docs/api/structures/protocol-request.md",
"docs/api/structures/protocol-response-upload-data.md",
"docs/api/structures/protocol-response.md",
"docs/api/structures/rectangle.md",
"docs/api/structures/referrer.md",