[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] Web server MIME types / content types



On Fri, May 29, 2015 at 9:43 PM, Thomas Gazagnaire <thomas@xxxxxxxxxxxxxx> wrote:
> It looks like mirage-seal is going in this direction, with the caveats
> that a) it's a testbed for TLS support, and b) it does not send
> content-type yet.

Thanks for noticing, I've created https://github.com/mirage/mirage-seal/issues/4 to track that. Patches are welcome :-)

Here's a patchÂhttps://github.com/mirage/mirage-seal/pull/7, Â- I more or less lifted it verbatim from Len's patch... :)
Â
I see mirage-seal as a default way to publish static contents with mirage in the near future. I plan to add a mode to serve HTTP contents only (but yes, currently the goal is to test the other libraries).

I could definitely use HTTP-only, I'll have a look at doing that next.

Â

Thomas



>Â My impression is that other folks start with
> static_website and hack it as needed to serve their purpose, ex. [1]
> [2] [3].
>
> I think there is an opportunity for a library that fills in some of
> the missing content-serving features, like mime types, cache awareness
> (conditional GET), and compression, while staying within the bounds of
> Mirage compatibility. It might take some inspiration from Ocsigen [4]
> and Go's net/http [5], and would complement the "static website
> generator" pioneer project [6].
>
> [1] http://somerandomidiot.com/blog/2014/08/19/i-am-unikernel/
> [2] http://is-awesome.net/2014/11/building-a-blog-with-mirage-os/
> [3] http://amirchaudhry.com/from-jekyll-to-unikernel-in-fifty-lines/
> [4] http://ocsigen.org
> [5] http://golang.org/pkg/net/http
> [6] https://github.com/mirage/mirage-www/wiki/Pioneer-Projects#blog-and-opam-aware-static-website-generator
>
> cheers,
> --
> Len
>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.