falconraptor / litespeed Goto Github PK
View Code? Open in Web Editor NEWA simple, fast web server that is mostly customizable. Includes websockets.
License: MIT License
A simple, fast web server that is mostly customizable. Includes websockets.
License: MIT License
register_error_route is hidden inside App, where as route is not.
Id like it to be exposed inside litespeed for consistency.
Is your feature request related to a problem? Please describe.
Unable to add headers when returning a render call.
Describe the solution you'd like
Add a header parameter to the render call to allow for extra headers
Describe alternatives you've considered
Adding headers after the render call but before the return. Clunky
fix is to change
Line 271 in cb7b7e7
elif isinstance(_body, dict):
to elif isinstance(_body, (dict, list)):
@ModernMAK This is for you
Is your feature request related to a problem? Please describe.
To reuse a route with different logic for different request methods, you need to route to a single 'switch' function, and delegate methods from there.
An example:
def read_or_write(request):
method = request['REQUEST_METHOD']
if method == "POST":
return do_post(request)
elif method == "GET":
return do_get(request)
else:
return 405 # Method not allowed http status
would remove the need for @route(methods=["GET"])
and replace it with @route.get()
Line 93 in 883ae70
msg not passed if blank. Must change check to if None to prevent TypeError from methods expecting msg (any websocket message handler)
When serving a css file, headers are set to 'application/octet-stream' instead of the expected 'text/css'
LiteSpeed/litespeed/helpers.py
Line 31 in 68a209b
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.