> For the complete documentation index, see [llms.txt](https://hichemtech.gitbook.io/reqease-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hichemtech.gitbook.io/reqease-docs/reqease.md).

# ReqEase

## Introduction to ReqEase Class

The heart of ReqEase lies in its powerful JavaScript class, aptly named `ReqEase`. This class provides a streamlined interface to handle form validation, make HTTP requests, and manage responses effortlessly. In this section, we'll explore the key aspects of the [`ReqEase`](/reqease-docs/reference/reference.md#reqease-module) class and its options.

## ReqEase Options

The `ReqEase` class accepts a variety of options to tailor its behavior to your specific requirements. These options include settings for form validation, HTTP requests, response handling, and more.

Here's an overview of common `ReqEase` options:

* [`form`](https://hichemtech.gitbook.io/reqease-docs/pages/PtV9Vz0k0Pw5rYVYqTff#1.-form-htmlformgeneralelement): The HTML form element you want ReqEase to work with.
* [`okBtn`](https://hichemtech.gitbook.io/reqease-docs/pages/PtV9Vz0k0Pw5rYVYqTff#2.-okbtn-htmlbuttongeneralelement): The button that triggers ReqEase's actions, often the form's submit button.
* [`formValidator`](https://hichemtech.gitbook.io/reqease-docs/pages/PtV9Vz0k0Pw5rYVYqTff#3.-formvalidator-formvalidationoptionsentered): Configuration options for [`Form Validator`](/reqease-docs/form-validation.md).
* [`requester`](https://hichemtech.gitbook.io/reqease-docs/pages/PtV9Vz0k0Pw5rYVYqTff#4.-requester-requesteroptionsentered): Configuration options for making HTTP requests.
* [`buildMode`](https://hichemtech.gitbook.io/reqease-docs/pages/PtV9Vz0k0Pw5rYVYqTff#5.-buildmode-buildmode-or-buildmodestring): Specifies when to build ReqEase (on initialization or every time).

These options allow you to fine-tune ReqEase to seamlessly integrate with your project's structure and requirements.

<figure><img src="https://mermaid.ink/img/pako:eNqNUstOwzAQ_JWVD1Uqtf2AgDigloeEBGooB5oerHhLLCV2WNsg1PTfsZ0HtBfIId5ZzYy9Hh9YoQWylL0Rb0p4Xl7kCiCznGySxGU6hfn8Ch4bK7Uyh2snKzGgY2T3INDajUGCW_mBami3cKOpfuGVFNxq2gYEI9xFhxNG9OmRN4AbLisULWSl_lwReYtQQSz_IX_ixgT5Gt8dGou0HatOPcKo7BFkqGwLhNaRWqNp_CS47SAMuNOfcqJJ5ooCjR_9jitR4ajvIP1l4B3C0I7w19SReuoXg1mjEkjjFh382QEmsFF7qaQpUSSLxaKLc6VEl_Rg33tZ-kqSuPS5twVXBVZtUCSJ_02n_a15TsegUJ7FfHazl_Pwea4J0U2glMLP9qC5kOrtXglZxLfRN2Ds7C7YjNVINZfCP9JDcM2ZLbHGnKW-FLjnrrI5y9XRU7mzOvtSBUstOZwx1_jT4FJy_7xrlu55ZXy34epV6wEfvwFmwxA2?type=png" alt=""><figcaption><p>ReqEase Cycle</p></figcaption></figure>

#### Example:

<pre class="language-javascript"><code class="lang-javascript">const reqEase = new ReqEase({
    buildMode: "everytime",
    form: $("#myForm"),
    okBtn: $("#okBtn"),
    <a data-footnote-ref href="#user-content-fn-1">formValidator</a>: {
        // some validation options
    },
    <a data-footnote-ref href="#user-content-fn-2">requester</a>: {
        // some requester options
    },
});
</code></pre>

[^1]: [`FormValidationOptions`](/reqease-docs/reference/reference.md#formvalidationoptionsentered)

    Configuration Object of the [**From Validator**](/reqease-docs/form-validation.md) **module.**

[^2]: [`RequesterOptions`](https://hichemtech.gitbook.io/reqease-docs/pages/PtV9Vz0k0Pw5rYVYqTff#4.-requester-requesteroptionsentered)

    Configuration Object of the **Requester module.**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://hichemtech.gitbook.io/reqease-docs/reqease.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.
