https://github.com/sudo-self/html-json
https://github.com/sudo-self/html-json
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/sudo-self/html-json
- Owner: sudo-self
- Created: 2024-03-10T08:55:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-10T09:52:03.000Z (over 2 years ago)
- Last Synced: 2025-01-24T14:47:00.217Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://denodock.deno.dev
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# http request/200ok.
## json-html.deno.dev/JSON
add /json endpoint
https://json-html.deno.dev/json{"message":"Hello from Deno Deploy"}
```sh
# Response:
# HTTP/2 200
# content-type: application/json; charset=UTF-8
# content-length: 36
# date: Tue, 09 Mar 2021 15:11:57 GMT
# server: denosr
# x-dsr-id: asia-southeast1-a::runner-l4hc
# {"message":"Hello from Deno Deploy"}
```
## json-html.deno.dev /HTML
add /html endpoint
https://json-html.deno.dev/htmlMessage: Hello from Deno Deploy.
```sh
# Response:
# HTTP/2 200
# content-type: text/html; charset=UTF-8
# content-length: 73
# date: Tue, 09 Mar 2021 15:15:56 GMT
# server: denosr
# x-dsr-id: asia-southeast1-a::runner-l4hc
#
#
Message: Hello from Deno Deploy.
#
```
[/JSON /HTML](https://json-html.deno.dev)