module Dhall::Parser::Http
Constants
- SCHEME
Public Instance Methods
http(key)
click to toggle source
# File lib/dhall/parser.rb, line 557 def http(key) @http ||= capture(:http_raw) @http.capture(key)&.value end
value()
click to toggle source
# File lib/dhall/parser.rb, line 562 def value uri = http(:scheme).build( http(:authority).merge( path: http(:url_path) || "/" ) ) uri.instance_variable_set(:@query, http(:query)) SCHEME.fetch(uri.scheme).new( headers: capture(:import_expression)&.value, uri: uri ) end