class Served::HTTPClient
Provides an interface between the HTTP client and the Resource
.
Constants
- DEFAULT_TEMPLATE
Attributes
resource[R]
template[R]
Public Class Methods
new(resource)
click to toggle source
# File lib/served/http_client.rb, line 20 def initialize(resource) @resource = resource h = host + @resource.template @template = Addressable::Template.new(h) @backend = Served::Backends[Served.config.backend].new(self) end