requestpropertyName
requestpropertyName is a feature of the WebSocket API, which is a JavaScript protocol used for establishing bidirectional, real-time communication between a client and a server over the web. It is a method on the Request {_Target()} interface, which is part of the {{domxref("URL")}} class, that allows accessing the property name of the property from the {{domxref("Request")}}.
This method is primarily used to dynamically access properties of the Request object which is commonly used
It is used in conjunction with other methods of the Request object, such as the {{domxref("Request.getPropertyValue()")}}
The application of requestpropertyName is typical in scenarios where property value need to be retrieved from
The availability of requestpropertyName varies across browsers and platforms. As of now, this method is compatible
The code snippet mentioned below will show how you would request the property name and print it
const url = new URL('https://example.com');
const propertyname = url.requestpropertyname;
```