You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation for request.path mentions that the property is read-only, which is misleading.
First, it is technically not set as a real read-only property, so it is mutable. Secondly, request.path is read from at a later point in time if headers was not passed to the ClientRequest constructor.
I would suggest removing the 'Read-only' portion from the description or making the property truly read-only using the appropriate property descriptor.
The text was updated successfully, but these errors were encountered:
mscdex
added
http
Issues or PRs related to the http subsystem.
doc
Issues and PRs related to the documentations.
labels
Feb 1, 2019
The documentation for
request.path
mentions that the property is read-only, which is misleading.First, it is technically not set as a real read-only property, so it is mutable. Secondly,
request.path
is read from at a later point in time ifheaders
was not passed to theClientRequest
constructor.Here is a small example that shows this:
I would suggest removing the 'Read-only' portion from the description or making the property truly read-only using the appropriate property descriptor.
The text was updated successfully, but these errors were encountered: