> For the complete documentation index, see [llms.txt](https://cherrycake.tin.cat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cherrycake.tin.cat/version-1.x-beta/reference/core-classes/requestpathcomponent/methods.md).

# RequestPathComponent methods

## \_\_construct( setup ) <a href="#construct" id="construct"></a>

* **`setup`** A hash array with the following possible keys:
  * **`name`** A name for the path component, it will let you refer to this component in the future.
  * **`type`** The type of the component, from one of the following available types:
    * `REQUEST_PATH_COMPONENT_TYPE_FIXED`
    * `REQUEST_PATH_COMPONENT_TYPE_VARIABLE_STRING`
    * `REQUEST_PATH_COMPONENT_TYPE_VARIABLE_NUMERIC`
  * **`string`** For `REQUEST_PATH_COMPONENT_TYPE_FIXED` type path components, the exact text on this part of the path.
  * **`securityRules`** An array of the security rules that must be applied to the value received by this path component. See [Working with Security](broken://pages/-M5RTLKIG9NnOCIm38gB) for a list of all the available rules.
  * **`filters`** An array of the filters that must be applied to the value received by this path component. See [Working with Security](broken://pages/-M5RTLKIG9NnOCIm38gB) for a list of all the available filters.
