Skip to content

Properties httpVersionMajor and httpVersionMinor missing in Context object #3033

@cezar77

Description

@cezar77

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions