Module Puppet::Network::HTTP::Handler
In: lib/puppet/network/http/handler.rb

Methods

Included Modules

Puppet::Network::HTTP::API::V1 Puppet::Network::RestAuthorization

Attributes

handler  [R] 
server  [R] 

Public Instance methods

Retrieve the accept header from the http request.

Retrieve the Content-Type header from the http request.

Which format to use when serializing our response or interpreting the request. IF the client provided a Content-Type use this, otherwise use the Accept header and just pick the first value.

resolve node name from peer‘s ip address this is used when the request is unauthenticated

Set the specified format as the content type of the response.

Set the response up, with the body and status.

[Validate]