Strelka::App::

Metadata

module
Included Modules
Strelka::HTTPRequest::Metadata
Extended With
Strelka::Plugin

A Strelka plugin for setting up requests to be able to carry Thingfish metadata with it.

Public Class Methods

anchor
included( object )

Extension callback – extend the HTTPRequest classes with Metadata support when this plugin is loaded.

# File lib/strelka/app/metadata.rb, line 22
def self::included( object )
        self.log.debug "Extending Request with Metadata mixins"
        Strelka::HTTPRequest.class_eval { include Strelka::HTTPRequest::Metadata }
        super
end

Public Instance Methods

anchor
handle_request( request )

Start content-negotiation when the response has returned.

# File lib/strelka/app/metadata.rb, line 30
def handle_request( request )
        self.log.debug "[:metadata] Attaching Thingfish metadata to request."
        super
end