Module: RailsTwirp::UrlFor

Extended by:
ActiveSupport::Concern
Includes:
AbstractController::UrlFor
Included in:
Base
Defined in:
lib/rails_twirp/url_for.rb

Instance Method Summary collapse

Instance Method Details

#url_optionsObject



11
12
13
14
15
16
17
# File 'lib/rails_twirp/url_for.rb', line 11

def url_options
  @_url_options ||= {
    host: http_request.host,
    port: http_request.optional_port,
    protocol: http_request.protocol
  }.merge!(super).freeze
end