> For the complete documentation index, see [llms.txt](https://matanya.gitbook.io/vue-tables-2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://matanya.gitbook.io/vue-tables-2/server-table/custom-request-function.md).

# Custom Request Function

by default the library supports \`JQuery\`, \`vue-resource\` and \`axios\` as ajax libraries.

If you wish to use a different library, or somehow alter the request (e.g add auth headers, or manipulate the data) use the \`requestFunction\` option. E.g:

```javascript
options: {
    requestFunction(data) {
        return axios.get(this.url, {
            params: data
        }).catch(function (e) {
            this.dispatch('error', e);
        });
    }
}
```

{% hint style="info" %}
When using a custom request function, the \`url\` prop is not required.
{% endhint %}
