Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

be able to access both the raw request body as well as the eventually parsed body #928

Closed
hyun007 opened this issue Oct 1, 2015 · 3 comments

Comments

@hyun007
Copy link

hyun007 commented Oct 1, 2015

would love to have a req.rawBody available in the request object

@DonutEspresso
Copy link
Member

req.rawBody should be available. Which post types are you seeing this missing for? I see it's missing for JSON - we'll fix that for 5.x.

@DonutEspresso DonutEspresso added this to the Release 5.x milestone Oct 25, 2015
@DonutEspresso
Copy link
Member

In the meantime, you should be able to access it via req._body, but it may be subject to change.

@DonutEspresso
Copy link
Member

Closing in favor of issue in plugins repo.

dzhang-ssense added a commit to dzhang-ssense/DefinitelyTyped that referenced this issue Oct 25, 2021
The `rawBody` property is a property which the restify team intend to support:
restify/node-restify#928
restify/plugins#6
Having it available in the typing enables access to this property.
typescript-bot pushed a commit to DefinitelyTyped/DefinitelyTyped that referenced this issue Nov 5, 2021
…ng-ssense

* Update Request to include rawBody property

The `rawBody` property is a property which the restify team intend to support:
restify/node-restify#928
restify/plugins#6
Having it available in the typing enables access to this property.

* Remove trailing whitespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants