MCPcopy Index your code
hub / github.com/scality/cloudserver / callbackGetToHead

Function callbackGetToHead

lib/api/website.js:122–126  ·  view source on GitHub ↗

* Callbacks have different signature for GET and HEAD * The website function uses GET callback signature * This encapsulate HEAD callback to match GET signature * @param {function} callback - HEAD callback * @returns {function} HEAD callback with GET signature

(callback)

Source from the content-addressed store, hash-verified

120 * @returns {function} HEAD callback with GET signature
121 */
122function callbackGetToHead(callback) {
123 return (err, userErrorPageFailure, dataGetInfo,
124 resMetaHeaders, redirectInfo, key) =>
125 callback(err, resMetaHeaders, redirectInfo, key);
126}
127
128/**
129 * Website - Common website function for GET and HEAD

Callers 1

websiteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected