# HttpMethods

*File:* [*`http-methods.enum.ts`*](https://github.com/labrynx/error-enhanced/blob/main/src/lib/enums/http-methods.enum.ts)

### Overview

The `HttpMethods` enum provides a type-safe way to represent HTTP methods in your application. This enum is part of the `network-utils` library and offers a clear way to specify the HTTP methods being used in API requests.

### Features

* **Type-Safe HTTP Methods**: Ensures that only valid HTTP methods can be used, reducing errors and improving readability.

### Usage Example

```typescript
const method = HttpMethods.POST;
```

### Enum Members

| Key      | Value      | Description                                                                    |
| -------- | ---------- | ------------------------------------------------------------------------------ |
| `GET`    | `'get'`    | Used for read-only requests to retrieve resource representation.               |
| `POST`   | `'post'`   | Used to submit data to be processed to a specified resource.                   |
| `PATCH`  | `'patch'`  | Used to apply partial modifications to a resource.                             |
| `PUT`    | `'put'`    | Used to update or create a new resource with the data enclosed in the request. |
| `DELETE` | `'delete'` | Used to request the removal of a resource.                                     |

***


---

# 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://labrynx.gitbook.io/error-enhanced/enums/httpmethods.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.
