View Source erldns_admin_zone_records_resource_handler (erldns v4.2.0)
Cowbow handler that handles Admin API requests to /zones/:name
Summary
Functions
Only GET method is allowed
Verify if a zone is cached
Return information about a given zone in cache
Functions
-spec allowed_methods(cowboy_req:req(), erldns_admin:handler_state()) -> {[binary()], cowboy_req:req(), erldns_admin:handler_state()}.
Only GET method is allowed
-spec resource_exists(cowboy_req:req(), erldns_admin:handler_state()) -> {boolean(), cowboy_req:req(), erldns_admin:handler_state()}.
Verify if a zone is cached
-spec to_json(cowboy_req:req(), erldns_admin:handler_state()) -> {stop | cowboy_req:resp_body(), cowboy_req:req(), erldns_admin:handler_state()}.
Return information about a given zone in cache