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
- Host: GitHub
- URL: https://github.com/plibither8/toget
- Owner: plibither8
- License: mit
- Created: 2022-10-01T09:00:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-01T09:01:00.000Z (over 2 years ago)
- Last Synced: 2024-05-02T02:43:41.058Z (12 months ago)
- Topics: cloudflare-workers, proxy, requests
- Language: TypeScript
- Homepage:
- Size: 19.5 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)