Can we somehow achieve or build a canister with a interface bahaving like a classic web server

In agent-rs, all requests to canisters implementing the HTTP interface are converted to query calls:

It seems like it should be trivial to inspect the request method and convert POST/PUT/DELETE/etc to an update call instead, but I’m assuming this code is only for development purposes and won’t affect the HTTP gateway on the network.

I took a look at dfn_http but I haven’t been able to figure out how/where that’s used or intended to be used.

I would contact the author but everything appears as dfinity-bot. It would be helpful if the commits showed the author as well as the committer.

@nomeata, do you know if update calls work with the HTTP interface for canisters?