http icon indicating copy to clipboard operation
http copied to clipboard

Tarantool http server

Results 30 http issues
Sort by recently updated
recently updated
newest added

1. Checking for empty data before attempting decoding, which can prevent unnecessary errors. 2. More explicit handling of the case when the data is empty. **For example:** ```lua local function...

This commit proposes the removal of a redundant URI path segment check within the `parse_request` function. Currently, the code contains a loop that iterates over each path segment in the...

Add trailing_slash http route option. `trailing_slash` defines the trailing slash behavior for the route and as a result **req:stash** behaviour . The initial value is **true**. 1. When **false**, if...

``` local VERSION = 'unknown' if package.search('http.VERSION') then VERSION = require('http.VERSION') end ``` file `VERSION.lua` contains in ``.gitignore`` and always build package has "unknown" version

bug

`tostring(req)` invokes `request_tostring` function, which does the following step: https://github.com/tarantool/http/blob/6be78efcb2848d740b5c1c16511953a05b328e82/http/server.lua#L170 But request does not have a `body` attribute. `response` does. String representation of a request always ends with empty lines...

bug
question

Please add tests both for client && server

http.server
good first issue
code health

I'm using req.param() to extract POST request params, but it's not working at all. Here's what I do: ```sh echo '{"text": "Hello **world**!"}' | curl -d @- http://localhost:8080/ ``` Then...

bug
good first issue

If I call req:param() then req:json() will fail subsequently, because it won't be able to read the request body using req:read(), because req:read() is not reentrant. Request body should be...

bug
good first issue

server.lua:657 E> failed to read request: Connection reset by peer When querying via WebRequest (.Net Framework), an error appears in the Tarantool logs. Play through https://github.com/ZUBAT/tnt_restsharp_test

Hello. Can you add support return response from befor_dispatch function? It may usefull for handle bearing token auth or basic auth. I think you can change code like this: ```...

feature