1.0.2 • Published 6 years ago

serviceberry-form v1.0.2

Weekly downloads
19
License
MIT
Repository
github
Last release
6 years ago

serviceberry-form

CircleCI Test Coverage Maintainability npm version

URL encoded form serialization plugin for Serviceberry.

API

contentType

application/x-www-form-urlencoded

deserialize(request, response)

Transforms the request content into the request body

serialize(request, response)

Transforms the response body into the response content.

Serializing a response body as a form encoded string doesn't seem particularly useful but it felt rather asymmetrical for this plugin to only support deserialization.

A known serialization quirk is that arrays are serialized as list and not duplicated keys