class OutputBuilderCommon

Defined in:

output_builder/common.cr

Constant Summary

MOBILE_METADATA_KEYS = ["via", "query", "action", "category", "host", "package", "component_type", "exported", "explicit", "permission", "read_permission", "write_permission", "grant_uri_permissions", "path_permissions", "extras"]

Fixed order so plain output is deterministic. The protocol drives the prefix and "path" comes from path params, so neither is repeated here. component_type/exported/explicit appear on explicit-intent (filter-less exported) and provider surfaces; the *_permission / grant_uri_permissions / path_permissions keys only on providers. Absent keys are skipped per endpoint.

MOBILE_PROTOCOL_LABELS = {"mobile-scheme" => "SCHEME", "android-intent" => "INTENT", "universal-link" => "UNIVERSAL", "android-provider" => "PROVIDER"}

Mobile entry points keep method = "GET" internally; the protocol carries the real semantics and drives the display prefix.

Instance Method Summary

Instance methods inherited from class OutputBuilder

bake_endpoint(url : String, params : Array(Param)) bake_endpoint, io : IO io, io=(io : IO) io=, logger : NoirLogger logger, ob_puts(message) ob_puts, output_file : String output_file, print print

Constructor methods inherited from class OutputBuilder

new(options : Hash(String, YAML::Any)) new

Macros inherited from class OutputBuilder

define_getter_methods(names) define_getter_methods

Instance Method Detail

def print(endpoints : Array(Endpoint)) #

[View source]