Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I made a request with the following arguments:
/test?potato=true{ "banana": true }In the event, I receive:
{
"banana": true,
"potato": "true",
"__ow_method": "post",
"__ow_headers": {
"accept": "*/*",
"accept-encoding": "gzip",
"cdn-loop": "cloudflare",
"cf-connecting-ip": "xx",
"cf-ipcountry": "BR",
"cf-ray": "xx",
"cf-visitor": "{\"scheme\":\"https\"}",
"content-type": "application/json",
"host": "ccontroller",
"user-agent": "insomnia/2022.4.2",
"x-custom": "okay",
"x-forwarded-for": "xx",
"x-forwarded-proto": "https",
"x-request-id": "xx"
},
"__ow_path": ""
}
My question is: How do I differentiate a query param from a body param?
This way, it’s impossible to know if it’s a query param or a body param, except when the body is formatted in base64, in which case I get the body inside __ow_body.
Context: I’m a maintainer of serverless-adapter which integrates serverless clouds with any nodejs framework, I want to add support for Digital Ocean Functions to deploy apps like nestjs, trpc, etc.
Rory McEwan
Anjanesh Lekshminarayanan
182d09356ab94d3893ddfaca4f0270
Prashant Kumbhat
kprichard
e452769e8f30404d81a3bc803143f4
robert
Eleanor
GamesmenJordan