http
http copied to clipboard
Tarantool http server
As each request is handled in separate fiber it could be useful to store some information in `fiber.storage` (https://github.com/tarantool/tarantool/issues/3462)
One should be able to unregister routes. For example in case of switching on/off routes with feature toggles.
I need to use rules like: ``` //[.]domain.com/path/ ``` and get variables sub and id for db query. If host == domain.com, variable sub must have default value. Can I...
https://github.com/tarantool/http/blob/8909e39049b8124c62593ce4e83ab68b95c47765/http/server/init.lua#L245-L251 Seems it should be `headers.connection`, but not `p.headers.connection`. If we return `headers['connection'] = 'closes'` it actually ignores.
It also worth to add new Fedora versions and update others if there are new ones. This module is often used with tarantool/metrics, so we should support at least those...
Would be nice to have a method to remove or reset already registered routes as part of public http API. Possible scenarios of application: 1. handlers reload for e.g. in...
See 863c1b35905234a43021bf0b0fd2adceb1fc4ef6. (Please, remove it from [here](https://github.com/tarantool/http/blob/f11a68ffe49a3c4baf03f23df929afd6ed5f5588/http/server.lua#L1316) too.)
It's gonna be useful to install error handlers as it is done in flask: (https://flask.palletsprojects.com/en/2.1.x/errorhandling/) `app.register_error_handler`
I needed to extract the body of the query as a string without parsing json. I expected `req:request_line()` to return the query body because of it's description "returns the request...
https://github.com/tarantool/http/blob/da78c018a620f88b930f5f1aa0f14fbc39745ccc/http/server.lua#L717-L720 Static_file dir should a part of route. ``` httpd:route( {path = "/*slug", public = true, name = "default"}, http_middleware.v1(handle_get_default, http_collector) ) ``` Currently it is not possible to have...