Browse Source

docs: mark null ProtocolResponse.session as deprecated in struct docs

Charles Kerr 1 month ago
parent
commit
36f595ee4a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      docs/api/structures/protocol-response.md

+ 2 - 0
docs/api/structures/protocol-response.md

@@ -28,6 +28,8 @@
 * `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.
+  **Deprecated:** Using `null` to create a random independent session is
+  deprecated and will be removed soon.
 * `uploadData` [ProtocolResponseUploadData](protocol-response-upload-data.md) (optional) - The data used as upload data. This is only
   used for URL responses when `method` is `"POST"`.