Trying to setup a server that makes files in a folder available for
download.
Html files can be loaded by the server and accessed (+javascript
interaction) via localhost:8000, the html file displaying a image works
when viewed directly in firefox, the image is in the same folder (named
html) a
Can you control the HTTP request return MIME type? At one point I believe (but
am not sure) that HttpServer always returned HTML as the MIME type.
-- John
On Feb 10, 2014, at 11:06 AM, Marcus Appelros wrote:
> Trying to setup a server that makes files in a folder available for download.
>
>
Yeah found a whole file of MIME types:
https://github.com/JuliaLang/HttpCommon.jl/blob/master/src/mimetypes.jl
type Response
status::Int
headers::Headers
data::HttpData
finished::Bool
end
Response(s::Int, h::Headers, d::HttpData) = Response(s, h, d, false)
Response(s::Int, h::Hea