Skip to content

Instantly share code, notes, and snippets.

@arthur17
arthur17 / static.py
Created April 2, 2017 20:43
Simple static file handler for Falcon
import falcon
import mimetypes
import os.path
from falcon.request import Request
from falcon.response import Response
# simple static file handler for falcon
# it is recommended to use a program like nginx to handle static files
# however this is useful for development and when performance is not a priority