CHEF::Header - Class that will generate CHEF::Headers
1.0
This class inherites from Chef. This class will generate encrypted headers as described in the ChefHeaderDocumentation
Once you call header method it will load CHEF::Header::header class . Which will generate and fill up User Agent with appropriate Chef Headrs as specified in the above documentation.
loads CHEF::Header::header class and returns an object.
set internally to either 'GET' or 'POST'
calcualtes hash of end point for chef
calculdates hash of the content
initialized user-id field sets to the user_id or client-name.
initialized Host parameter of UA to chef server
initialized Chef server Version to use
initializes to 'version=1.0' as specified in the chef API documentation.
initialized the request timestamp for http request to now
returns all the headers
returns hash of all the headers , initialized so far.
return a comma seperated list of keys and values of the header
initialized chefheader with $method . either 'GET' or 'POST'
initializes hashed path and 'Hashed Path' heder value.
initializes content hash and 'X-Ops-Content-Hash' header.
initializes X-Ops-Timestamp values
initialized X-Ops-UserId value
initializes X-Ops-Authorization-xxxx values . for more details refere to chef header API
split the heder in chuncks of 60 characters
return chef_header in hash format
returns chef_header in string format . directly insertable to UserAgent headers.
open a github ticket or email comments to Bhavin Patel <bpatel10@nyit.edu>
This Software is free to use , licensed under : The Artisic License 2.0 (GPL Compatible)
To install CHEF::REST::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CHEF::REST::Client
CPAN shell
perl -MCPAN -e shell install CHEF::REST::Client
For more information on module installation, please visit the detailed CPAN module installation guide.