@sinch/functions-runtime 0.5.6 → 0.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/bin/sinch-runtime.js +1 -1
- package/dist/{chunk-DEFB2NIH.js → chunk-LU5JRQ64.js} +2588 -286
- package/dist/chunk-LU5JRQ64.js.map +1 -0
- package/dist/index.d.ts +10 -6
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-DEFB2NIH.js.map +0 -1
package/README.md
CHANGED
|
@@ -153,6 +153,32 @@ export async function ice(
|
|
|
153
153
|
}
|
|
154
154
|
```
|
|
155
155
|
|
|
156
|
+
## Request Limits
|
|
157
|
+
|
|
158
|
+
| Limit | Value |
|
|
159
|
+
| -------------------------------------- | ---------------------- |
|
|
160
|
+
| Request body | 10 MB (10485760 bytes) |
|
|
161
|
+
| Request/response body retained in logs | First 64 KB |
|
|
162
|
+
|
|
163
|
+
A body larger than the limit is rejected with `413` and a JSON response naming it:
|
|
164
|
+
|
|
165
|
+
```json
|
|
166
|
+
{
|
|
167
|
+
"error": "Payload too large",
|
|
168
|
+
"message": "Request body exceeds the 10mb limit",
|
|
169
|
+
"limit": "10mb"
|
|
170
|
+
}
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
A deployed function sits behind the platform router, which enforces the same 10 MB cap, so a body
|
|
174
|
+
that is accepted locally is accepted once deployed. If you receive a `413` **without** the JSON
|
|
175
|
+
body above, the router rejected the request before it reached your function.
|
|
176
|
+
|
|
177
|
+
Logs retain the first 64 KB of a request or response body, appending
|
|
178
|
+
`…[truncated — N bytes total]` when the body was longer. Only text formats are retained — JSON,
|
|
179
|
+
XML, plain text and form data. Anything else, including uploads, images, audio, video, PDFs and
|
|
180
|
+
archives, is not logged at all. Your function still receives every body in full.
|
|
181
|
+
|
|
156
182
|
## Documentation
|
|
157
183
|
|
|
158
184
|
- [Sinch Functions Documentation](https://developers.sinch.com/docs/functions)
|