I beg you to keep GET requests idempotent. It's not that hard.
Zerocal – A Serverless Calendar App in Rust
11–20 of 64 posts
Re: Zerocal – A Serverless Calendar App in Rust
#12I beg you to keep GET requests idempotent. It's not that hard.
Re: Zerocal – A Serverless Calendar App in Rust
#13I beg you to keep GET requests idempotent. It's not that hard.
Re: Zerocal – A Serverless Calendar App in Rust
#14You made a VCALENDAR generator with a web-accessible endpoint. It fills in the VCALENDAR with info passed in via URL parameters. And rather than returning a webpage, it just returns the VCALENDAR file.
So you send your friends the link, they click it, rather then returning text/html content, it returns a downloadable response consisting of a pre-filled VCALENDAR file with the correct MIME type, and .ics extension.
Do I have that right?
Re: Zerocal – A Serverless Calendar App in Rust
#15I want to make sure I understand this: You made a VCALENDAR generator with a web-accessible endpoint. It fills in the VCALENDAR with info passed in via URL parameters. And rather than returning a webpage, it just returns the VCALENDAR file. So you send your friends the link, they click it, rather then returning text/html content, it returns a downloadable response consisting of a pre-filled VCALENDAR file with the co…
Re: Zerocal – A Serverless Calendar App in Rust
#16Author here, had a lot of fun building this as it's just ~100 lines of Rust code + some CSS/HTML. If someone is looking for a fun thing to contribute to during Hacktoberfest, the code is on Github: https://github.com/mre/zerocal Will mainly use it for myself to send out event links to friends.
FYI: the text on your blog post is cropped on my small screen (iPhone SE), and scrolling doesn’t even help, so its essentially unreadable.
At least on the Chrome viewport emulator it looks fine to me...
https://github.com/mre/endler.dev/commit/bc1187d290d153455b0...
Re: Zerocal – A Serverless Calendar App in Rust
#17Re: Zerocal – A Serverless Calendar App in Rust
#18I want to make sure I understand this: You made a VCALENDAR generator with a web-accessible endpoint. It fills in the VCALENDAR with info passed in via URL parameters. And rather than returning a webpage, it just returns the VCALENDAR file. So you send your friends the link, they click it, rather then returning text/html content, it returns a downloadable response consisting of a pre-filled VCALENDAR file with the co…
Re: Zerocal – A Serverless Calendar App in Rust
#19Can you tell me why the above wouldn't work and why this is better?