func icon indicating copy to clipboard operation
func copied to clipboard

Properties httpVersionMajor and httpVersionMinor missing in Context object

Open cezar77 opened this issue 3 months ago • 0 comments

The file http/index.js has this JSDoc:

/**
 * @param {Context} context a context object.
 * @param {object} context.body the request body if any
 * @param {object} context.query the query string deserialized as an object, if any
 * @param {object} context.log logging object with methods for 'info', 'warn', 'error', etc.
 * @param {object} context.headers the HTTP request headers
 * @param {string} context.method the HTTP request method
 * @param {string} context.httpVersion the HTTP protocol version
 * See: https://github.com/knative/func/blob/main/docs/function-developers/nodejs.md#the-context-object
 */

The README.md mentions httpVersionMajor and httpVersionMinor, but they are not declared in the JSDoc.

Also the paragraph for httpVesionMinor repeats in the README.md.

cezar77 avatar Sep 09 '25 10:09 cezar77