# RequestParameter methods

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

* **`setup`** A hash array with the following possible keys:
  * **`name`** An name for the parameter, it will let you refer to this component in the future.
  * **`type`** The type of the parameter, from one of the following available types:
    * `REQUEST_PARAMETER_TYPE_GET`
    * `REQUEST_PARAMETER_TYPE_POST`
    * `REQUEST_PARAMETER_TYPE_FILE`
  * **`securityRules`** An array of the security rules that must be applied to the value received by this parameter. 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 parameter. See [Working with Security](broken://pages/-M5RTLKIG9NnOCIm38gB) for a list of all the available filters.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cherrycake.tin.cat/version-1.x-beta/reference/core-classes/requestparameter/methods.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
