- By Gojko Adzic
claudia
1.6.0 is now available from NPM, with two new fields for requests coming from APIs built using Claudia API Builder:
.rawBody
will contain the raw, unparsed body in case ofapplication/json
requests. This enables you to check the original body against external signatures and hashes, such as for Facebook bot authentication. Thanks to Fabricio C Zuardi for this change. (note that this will only be set forapplication/json
requests. For other content types, just use.body
to get the same value)..normalizedHeaders
are a copy of the HTTP request headers, but with lowercased names, so you can check for presence of headers easier. The old.headers
collection is still there, containing the header names as they were sent by the client.
Interested in Claudia.js? Get notified when we release a new version.
Low-volume, high value mailing list, no ads or spam.