module Strelka::App::Metadata

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

Public Class Methods

included( object ) click to toggle source

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

Calls superclass method
# 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

handle_request( request ) click to toggle source

Start content-negotiation when the response has returned.

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