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

# Requests

The 'requests' module provides HTTP/S functionality

### Function Signatures

{% code overflow="wrap" %}

```go
// Sends a GET request to the specified URL.
const get = (url: String, headers: Object = {}) => Object

// Sends a POST request to the specified URL with the provided payload.
const post = (url: String, payload: Object | String, headers: Object = {}) 
                => Object

// Sends a PUT request to the specified URL with the provided payload.
const put = (url: String, payload: Object | String, headers: Object = {}) 
                => Object

// Sends a PATCH request to the specified URL with the provided payload.
const patch = (url: String, payload: Object | String, headers: Object = {}) 
                => Object

// Sends a DELETE request to the specified URL.
const del = (url: String, headers: Object = {}) => Object

// Sends an OPTIONS request to the specified URL.
const options = (url: String, headers: Object = {}) => Object

// Sends a HEAD request to the specified URL.
const head = (url: String, headers: Object = {}) => Object

```

{% endcode %}
