An open API service indexing awesome lists of open source software.

https://github.com/plibither8/toget

🏄‍♂️ Proxy POST/PUT/PATCH requests through a GET request
https://github.com/plibither8/toget

cloudflare-workers proxy requests

Last synced: 13 days ago
JSON representation

🏄‍♂️ Proxy POST/PUT/PATCH requests through a GET request

Awesome Lists containing this project

README

        

# 🏄‍♂️ to-GET

> Proxy POST/PUT/PATCH requests through a GET request

## Usage

**Base URL**: [`https://toget.mihir.ch`](https://toget.mihir.ch)

**Endpoint**: `/:method`

- Supported methods (case insensitive): `GET`, `POST`, `PUT`, `PATCH`, `DELETE`
- Supported query parameters: `url`, `headers`, `body`

**Query Parameters**:

Query parameters must be properly URI-encoded.

- `url`: [Required] The URL to proxy the request to.
- `headers`: [Optional] The headers to send with the request, in JSON format.
- `body`: [Optional] The body (string) to send with the request. Stringify the body if it's an object.

## Development

To install dependencies:

```bash
bun install
```

To run:

```bash
bun run index.ts
```

> Note: The server was built to be hosted on Cloudflare Workers.

## License

[MIT](LICENSE)