This repository has been archived by the owner on Jun 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
feat(http): print help info on root path of the http server #367
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
levy5307
approved these changes
Dec 25, 2019
acelyc111
reviewed
Dec 25, 2019
register_handler("", | ||
std::bind(&perf_counter_http_service::get_perf_counter_handler, | ||
this, | ||
std::placeholders::_1, | ||
std::placeholders::_2)); | ||
std::placeholders::_2), | ||
"ip:port/perfCounter?name={perf_counter_name}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里能把实际的IP port填进去吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
填实际 ip port 需要启动整个 dsn runtime,加一大堆配置,所以偷懒就没做了,我希望等之后 rpc 模块和 dsn runtime 解藕之后做
}; | ||
|
||
class http_server : public serverlet<http_server> | ||
{ | ||
public: | ||
http_server(); | ||
explicit http_server(bool start = true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
start 仅用来做测试的标志?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
目前是的,不知道以后会不会有别的需求
acelyc111
approved these changes
Dec 26, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Example