jasy.http package¶
Submodules¶
jasy.http.Request module¶
jasy.http.Server module¶
-
class
jasy.http.Server.Result(headers, content, status_code)¶ Bases:
tuple-
content¶ Alias for field number 1
-
headers¶ Alias for field number 0
-
status_code¶ Alias for field number 2
-
-
class
jasy.http.Server.Server(port=8080, host='127.0.0.1', mimeTypes=None)[source]¶ Bases:
objectStarts the built-in HTTP server inside the project’s root directory
-
setRoutes(routes)[source]¶ Adds the given routes to the server configuration. Routes can be used to add special top level entries to the different features of the integrated webserver either mirroring a remote server or delivering a local directory.
The parameters is a dict where every key is the name of the route and the value is the configuration of that route.
-