Class: SocialAvatarProxy::Response

Inherits:
Rack::Response
  • Object
show all
Defined in:
lib/social_avatar_proxy/response.rb

Class Method Summary collapse

Class Method Details

.build(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/social_avatar_proxy/response.rb', line 6

def self.build(options = {})
  # build the response
  response = ResponseBuilder.new(options).response
  # apply the HTTP caching to the response
  SocialAvatarProxy::Config.http_cache.apply_caching_headers(response)
end