I try to return a NamedFile in a HttpRespose with this function
fn response(x: NamedFile)->HttpResponse{
HttpResponse::Ok()
.content_type(ContentType::html())
.insert_header(("X-Hdr", "sample"))
.body(x)
}
The function get called in my index file and returns the HttpRequest
is this even possible???