serviceberry-form
Version:
URL encoded form serialization plugin for serviceberry
30 lines (18 loc) • 1.24 kB
Markdown
serviceberry-form
=================
[](https://circleci.com/gh/bob-gray/serviceberry-form)
[](https://codeclimate.com/github/bob-gray/serviceberry-form/test_coverage)
[](https://codeclimate.com/github/bob-gray/serviceberry-form/maintainability)
[](https://badge.fury.io/js/serviceberry-form)
URL encoded form serialization plugin for [Serviceberry](https://serviceberry.js.org).
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*