-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support Records class #32
Labels
Milestone
Comments
I want more user-friendly and type-safe config setter ... |
Records class will support below config getter/setter: |
I think this support should have some phase.
records = ATS::Records.new
# getter
records.get ATS::Records::TS_CONFIG_URL_REMAP_PRISTINE_HOST_HDR #=> 0
# setter
records.set ATS::Records::TS_CONFIG_URL_REMAP_PRISTINE_HOST_HDR, 1
records = ATS::Records.new
# getter
records.proxy.config.url_remap.pristine_host_hdr #=> 0
records.url_remap.pristine_host_hdr #=> 0
# setter as #= method
records.proxy.config.url_remap.pristine_host_hdr = 1
records.url_remap.pristine_host_hdr = 1 |
As one of the future plan, block base settings may be usuful?: records = ATS::Records.new
records.set do |proxy|
# records.config like accessor!
proxy.config.url_remap.pristine_host_hdr = 1
end |
syucream
added a commit
that referenced
this issue
Aug 8, 2016
This was referenced Aug 8, 2016
I registered #52 about future plans. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Support Records class, like Apache::Env and Nginx::Var.
The text was updated successfully, but these errors were encountered: