How do some canisters handle http requests

So, an example:
https://nfvlz-jaaaa-aaaah-qcciq-cai.raw.ic0.app/?type=thumbnail&tokenid=dbk5b-nykor-uwiaa-aaaaa-b4aqs-eaqca-aaaek-a

How to get motoko canister to handle the request? For example, read url params, etc.

Canisters can implement http_request.

I gave a trivial example in Motoko here:

There’s another here:

You can also do the same in Rust:

See also:

5 Likes