- 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:
.rawBodywill contain the raw, unparsed body in case of
application/jsonrequests. 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 for
application/jsonrequests. For other content types, just use
.bodyto get the same value).
.normalizedHeadersare a copy of the HTTP request headers, but with lowercased names, so you can check for presence of headers easier. The old
.headerscollection 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.