-
Notifications
You must be signed in to change notification settings - Fork 40
roles: introduce role for http servers #197
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -7,8 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. | |||||||||||||||||||||||||
## [Unreleased] | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
### Fixed | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
- Fixed request crash with empty body and unexpected header Content-Type (#189) | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
### Added | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
- `roles.httpd` role to configure one or more HTTP servers (#196) | ||||||||||||||||||||||||||
- `httpd:delete(name)` method to delete named routes (#197) | ||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have never seen anyone using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, we can't use just path. Routes are stored as Lines 1248 to 1259 in 2e3dbd2
And those There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, I see that metrics-export-role sets the name as well There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it is. It uses name, BUT we could delete a route by path too. I don't see any problems. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The only problem is to create a nice and non-confusing API for the call. Maybe: httpd:delete(path, name)
httpd:delete(path)
httpd:delete(nil, name) But it looks a little strange. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I'm not sure, but as far as I remember that httpd has that weird thing that allows to set multiple handlers on the same route since route is not a unique identificator (and only one of handlers will be invoked). |
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
## [1.5.0] - 2023-03-29 | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
### Added | ||||||||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Install. | ||
install(FILES httpd.lua DESTINATION ${TARANTOOL_INSTALL_LUADIR}/roles) |
Uh oh!
There was an error while loading. Please reload this page.