-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure additional mime types #35
Comments
Yes, I'd like to be able to configure additional content types as well. For instance, text/cache-manifest for .manifest files. Seems to work fine in chrome either way, but I imagine there are other use cases for this feature. |
+1, would love it for |
This comment has been minimized.
This comment has been minimized.
Any news on HTML 5 video support? |
+1 I'm trying to test m3u8 HLS playlists and need to set the mime type |
+1 |
also |
I'll give it a shot. Just got an API implemented in the upstream ecstatic. If it gets accepted and I'm successful here... well, then it's done. |
Can someone give me a hand with #152? Any ideas? |
It'd also be nice if we could map |
I would love to be able to serve SVGs correctly using the MIME type |
#152 just needs tests afaict. If anyone wants to right those, I'd be 👍 for merging that. Setting media types correctly is rather essential--and |
MIME types can be customised in local-web-server, is that the kind of behaviour you're looking for? |
+1 for SVG and/or customizable approach similar local-web-server. |
This comment has been minimized.
This comment has been minimized.
Just want to chime in that lack of WebAssembly mime is forcing me to look for an alternative local server. http-server has beautifully handled all my needs up to this point and I'd hate to switch if I don't have to. |
@anderspitman Did you find another option? At some point I switched from |
@paulmelnikow I've been using https://crates.io/crates/https. That page includes installation instructions for non Rust developers as well. |
https://crates.io/crates/https: http -m wasm:application/wasm |
In case you landed here to figure out how to use the
|
@ddennedy I'm afraid that didn't seem to change anything for me |
Example mime type file can be found here; |
Simply creating a custom.types file with "type ext1 ext2" works. |
I don't think this is mentioned in the docs, but the source code allows using stringified JSON to customize the mimetype. (no mime.types file required!) npx http-server -c-1 --mimetypes '{ "application/vnd.apple.mpegurl": ["mp4"] }' I'm sharing this because I was looking for http-server --mimetypes usage guide. Couldn't find enough detail in the docs so I dug into the code. Hoping it's useful for someone else too 👍 |
add mime type support to enable streaming of video files with html 5 video tag
The text was updated successfully, but these errors were encountered: