Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 #90

Merged
merged 25 commits into from
Oct 4, 2019
Merged

V2 #90

merged 25 commits into from
Oct 4, 2019

Conversation

knazarov
Copy link
Contributor

@knazarov knazarov commented Oct 4, 2019

This merges the rebased v2alpha branch into master

ASverdlov and others added 25 commits October 4, 2019 17:25
Changes done:
1. decompose the code into modular pieces
2. decouple router and server parts
3. introduce nginx as possible Web Server via TSGI adapter
4. enable router tests on NGINX

Note: this change breaks connection stealing.
Now you don't have to pass server object on router
creation, but router has to register itself in
server object manually:
httpd:set_router(router)
Now we prioritize route (a) over (b) for some
request that matches both:

1. if it has more "constant" symbols (that is
symbols hardcoded in the path and not matched
in regexp group generated from : or * stashes),
or, if this number is equal,
2. if (a) has more specific filter on HTTP method
Stop url-encoding cookie path quoting cookie expire date

From RFC 6265 (4.1.1 section):
 expires-av        = "Expires=" sane-cookie-date
 sane-cookie-date  = <rfc1123-date, defined in [RFC2616], Section 3.3.1>
* Add luacheckrc config
* Don't ignore warnings blindly
* Don't export checks globally
The parameterized log_requests and log_errors is not present in http
v2.
@knazarov knazarov merged commit bb6f6c0 into master Oct 4, 2019
@rosik rosik deleted the v2 branch October 4, 2019 15:27
@ligurio ligurio mentioned this pull request Oct 22, 2021
ligurio added a commit that referenced this pull request Oct 26, 2021
Patch adds a tests ported from TAP to luatest format that were
intitially implemented in commits 'Port from tap to luatest'
(549058d) and 'Rewrite tap tests to
luatest' (54d0fca) and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 26, 2021
Patch adds a commit 'Add editorconfig to configure indents'
(886976a) that was implemented and the
reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 26, 2021
Patch adds a commit 'Fix FindTarantool.cmake script'
(c6bd906) that was implemented in http
v2 and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 26, 2021
In tarantool the standart built-in module for working with files is "fio".
So we should use it instead of "io".

Patch adds a commit 'Get rid of io module'
(e0d8f82) that was implemented for http
v2 and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 26, 2021
Patch adds a tests ported from TAP to luatest format that were
intitially implemented in commits 'Port from tap to luatest'
(549058d) and 'Rewrite tap tests to
luatest' (54d0fca) and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 26, 2021
Patch adds a commit 'Add editorconfig to configure indents'
(886976a) that was implemented and the
reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 26, 2021
Patch adds a commit 'Fix FindTarantool.cmake script'
(c6bd906) that was implemented in http
v2 and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 26, 2021
In tarantool the standart built-in module for working with files is "fio".
So we should use it instead of "io".

Patch adds a commit 'Get rid of io module'
(e0d8f82) that was implemented for http
v2 and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 27, 2021
Patch adds a tests ported from TAP to luatest format that were
intitially implemented in commits 'Port from tap to luatest'
(549058d) and 'Rewrite tap tests to
luatest' (54d0fca) and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 27, 2021
Patch adds a commit 'Add editorconfig to configure indents'
(886976a) that was implemented and the
reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 27, 2021
Patch adds a commit 'Fix FindTarantool.cmake script'
(c6bd906) that was implemented in http
v2 and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 27, 2021
In tarantool the standart built-in module for working with files is "fio".
So we should use it instead of "io".

Patch adds a commit 'Get rid of io module'
(e0d8f82) that was implemented for http
v2 and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 27, 2021
Patch adds a tests ported from TAP to luatest format that were
intitially implemented in commits 'Port from tap to luatest'
(549058d) and 'Rewrite tap tests to
luatest' (54d0fca) and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 27, 2021
Patch adds a commit 'Add editorconfig to configure indents'
(886976a) that was implemented and the
reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 27, 2021
Patch adds a commit 'Fix FindTarantool.cmake script'
(c6bd906) that was implemented in http
v2 and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 27, 2021
In tarantool the standart built-in module for working with files is "fio".
So we should use it instead of "io".

Patch adds a commit 'Get rid of io module'
(e0d8f82) that was implemented for http
v2 and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 28, 2021
Patch adds a tests ported from TAP to luatest format that were
intitially implemented in commits 'Port from tap to luatest'
(549058d) and 'Rewrite tap tests to
luatest' (54d0fca) and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 28, 2021
Patch adds a commit 'Add editorconfig to configure indents'
(886976a) that was implemented and the
reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 28, 2021
Patch adds a commit 'Fix FindTarantool.cmake script'
(c6bd906) that was implemented in http
v2 and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 28, 2021
In tarantool the standart built-in module for working with files is "fio".
So we should use it instead of "io".

Patch adds a commit 'Get rid of io module'
(e0d8f82) that was implemented for http
v2 and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 28, 2021
Patch adds a tests ported from TAP to luatest format that were
intitially implemented in commits 'Port from tap to luatest'
(549058d) and 'Rewrite tap tests to
luatest' (54d0fca) and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 28, 2021
Patch adds a commit 'Add editorconfig to configure indents'
(886976a) that was implemented and the
reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 28, 2021
Patch adds a commit 'Fix FindTarantool.cmake script'
(c6bd906) that was implemented in http
v2 and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 28, 2021
In tarantool the standart built-in module for working with files is "fio".
So we should use it instead of "io".

Patch adds a commit 'Get rid of io module'
(e0d8f82) that was implemented for http
v2 and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 28, 2021
Patch adds a tests ported from TAP to luatest format that were
intitially implemented in commits 'Port from tap to luatest'
(549058d) and 'Rewrite tap tests to
luatest' (54d0fca) and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 28, 2021
Patch adds a commit 'Add editorconfig to configure indents'
(886976a) that was implemented and the
reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 28, 2021
Patch adds a commit 'Fix FindTarantool.cmake script'
(c6bd906) that was implemented in http
v2 and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 28, 2021
In tarantool the standart built-in module for working with files is "fio".
So we should use it instead of "io".

Patch adds a commit 'Get rid of io module'
(e0d8f82) that was implemented for http
v2 and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 28, 2021
Patch adds a tests ported from TAP to luatest format that were
intitially implemented in commits 'Port from tap to luatest'
(549058d) and 'Rewrite tap tests to
luatest' (54d0fca) and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 28, 2021
Patch adds a commit 'Add editorconfig to configure indents'
(886976a) that was implemented and the
reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 28, 2021
Patch adds a commit 'Fix FindTarantool.cmake script'
(c6bd906) that was implemented in http
v2 and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
ligurio added a commit that referenced this pull request Oct 28, 2021
In tarantool the standart built-in module for working with files is "fio".
So we should use it instead of "io".

Patch adds a commit 'Get rid of io module'
(e0d8f82) that was implemented for http
v2 and later reverted in scope of issue with discard v2.

Follows up #90
Part of #134
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants