yomimono / url-shortener

Example URL shortener MirageOS unikernel using Chamelon.
18 stars 1 forks source link

Upgrade the codebase to use paf-le-chien instead of CoHTTP #3

Open dinosaure opened 2 years ago

dinosaure commented 2 years ago

This PR wants to upgrade your unikernel with paf-le-chien which integrates stuffs required for Let's encrypt challenges. We already did some benchmarks with unipi and it seems that paf is better about performances. I took the opportunity to upgrade the POST request to send a multipart/form request instead of an URL-encoded request - you can check multipart_form for that.

Of course, the code use http/af and I added a new argument to be able to launch a simple HTTP server (without certificates). It's a draft and this PR will be improve after the integration of mirage/mirage#1300 and some tests on my side.

dinosaure commented 2 years ago

This PR needs yomimono/chamelon#5 to works.

dinosaure commented 2 years ago

Currently, this version is running here: https://url.osau.re/ (the certificate is a fake one - I got some trouble with contruno but it's an orthogonal problem).