You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
643 B
22 lines
643 B
# frozen_string_literal: true |
|
|
|
require 'linzer/http/signature_feature' |
|
require 'linzer/message/adapter/http_gem/response' |
|
|
|
module Linzer::Message::Adapter |
|
module ActionDispatch |
|
class Response < Linzer::Message::Adapter::Generic::Response |
|
private |
|
|
|
# Incomplete, but sufficient for FASP |
|
def derived(name) |
|
case name.value |
|
when '@status' then @operation.status |
|
end |
|
end |
|
end |
|
end |
|
end |
|
|
|
Linzer::Message.register_adapter(HTTP::Response, Linzer::Message::Adapter::HTTPGem::Response) |
|
Linzer::Message.register_adapter(ActionDispatch::Response, Linzer::Message::Adapter::ActionDispatch::Response)
|
|
|