How to access POST fields in POST backend function?

Hi,
I’m testing GET and POST backend functions but I’ve hit a problem with POST. When I call

export function post_mypost(request) {
}

from CURL with field and value pairs, the function is supposed to have the query fields in
request.query
however this this appears to be undefined and contains nothing. As a test, if I return the request.body

export function post_mypost(request) {
let options = {
“body” : request.body.text()
}
return ok(options);
}

my caller receives

{"isFulfilled":true,"isRejected":false,"fulfillmentValue":"version=10"} 

where “version=10” is a test field value pair. So clearly the fields and values are getting to the post function.

Any help would be appreciated.