Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ic-kit-http #25

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
6a2a1fb
feat: initial impl ic-kit-http, supports only GET
ozwaldorf Sep 17, 2022
4c0bc29
feat: update call upgrade, [post, put, delete, option, head] macros
ozwaldorf Sep 17, 2022
d4d6b8c
feat: HttpRequest header helper, HttpResponse builder, pastebin retur…
ozwaldorf Sep 17, 2022
31f822c
feat: add basic index templating to pastebin example (canister side r…
ozwaldorf Sep 17, 2022
0ca7480
docs: pastebin readme
ozwaldorf Sep 17, 2022
66010ec
docs: add more to examples readme
ozwaldorf Sep 17, 2022
ddab442
chore: update dependencies to latest candid 0.8 and ic-types 0.6
ozwaldorf Oct 2, 2022
c9951a6
chore: minor tweaks on http stuff
ozwaldorf Oct 2, 2022
c3c8ce6
feat: dynamic url on pastebin example
ozwaldorf Oct 2, 2022
404e8f3
Merge branch 'main' into feat/ic-kit-http
ozwaldorf Oct 12, 2022
fbb012d
fix: duplicate imports
ozwaldorf Oct 12, 2022
9375d76
chore: move dep injection helpers to their own module
ozwaldorf Oct 13, 2022
3c75abd
feat: http method dependency injection
ozwaldorf Oct 13, 2022
124c135
feat: use dependency injection in the http pastebin example!
ozwaldorf Oct 13, 2022
2cbe627
feat: http mutable DI error message when not upgraded to update call
ozwaldorf Oct 13, 2022
ceda296
chore: bump all versions
ozwaldorf Oct 13, 2022
61e4cdb
refactor: export service now reuses new di::wrap, entry let's use take
ozwaldorf Oct 13, 2022
c6e77e5
chore: remove unused Method implementation from ic-kit-http
ozwaldorf Oct 13, 2022
e729c20
feat: hello example
ozwaldorf Oct 13, 2022
9cd689f
docs: update examples README
ozwaldorf Oct 13, 2022
2347558
docs: ic-kit-http cargo doc
ozwaldorf Oct 13, 2022
f47aeaa
refactor: simplify and fmt exports
ozwaldorf Oct 14, 2022
5a23ae6
refactor: experimental-http feature; patch, path, head, options
ozwaldorf Oct 14, 2022
e35a024
chore: fix cdk version metadata macro
ozwaldorf Nov 4, 2022
4ad4b0c
chore: hardcode cdk version metadata (for now)
ozwaldorf Nov 4, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: pastebin readme
  • Loading branch information
ozwaldorf committed Sep 17, 2022
commit 0ca7480f2cde800f53673eeb5dae7f68bb0a97c8
23 changes: 23 additions & 0 deletions examples/pastebin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# IC Pastebin

This directory contains an example HTTP canister implemented using the IC Kit. It is a simple HTTP pastebin that allows you to store and retrieve text.

## How to use

1. Build and deploy the canister:
```bash
dfx deploy pastebin
```
2. View the canister's HTML UI at `http://rrkah-fqaaa-aaaaa-aaaaq-cai.localhost:8000/`
3. View the canister's manpage:
```bash
curl rrkah-fqaaa-aaaaa-aaaaq-cai.localhost:8000
```
5. upload some text:
```bash
curl -T file.txt rrkah-fqaaa-aaaaa-aaaaq-cai.localhost:8000
```
5. download some text:
```bash
curl rrkah-fqaaa-aaaaa-aaaaq-cai.localhost:8000/file.txt
```