You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Next-Generation Edge Function Runtime** - A lightweight, high-performance platform built with Deno and SQLite for deploying and managing serverless functions at the edge with enterprise-grade security and developer experience.
|`/admin-api/v2/functions`| GET | List all functions |`curl -H "Authorization: Bearer $JWT_TOKEN" http://localhost:8000/admin-api/v2/functions`|
194
+
|`/admin-api/v2/functions`| POST | Create new function | See [Function Creation](#-function-creation)|
195
+
|`/admin-api/v2/functions/{name}`| GET | Get specific function |`curl -H "Authorization: Bearer $JWT_TOKEN" http://localhost:8000/admin-api/v2/functions/my-function`|
196
+
|`/admin-api/v2/functions/{name}`| PUT | Update function | See [Function Updates](#-function-updates)|
|`/functions/v2/{name}`| POST | Execute function |`curl -X POST -H "Content-Type: application/json" -d '{"key":"value"}' http://localhost:8000/functions/v2/my-function`|
199
+
166
200
#### Configuration Management
167
201
168
202
| Endpoint | Method | Description | Example |
@@ -287,11 +321,93 @@ curl -X PUT \
287
321
|`available_port_end`| number | Service port range end | 8999 |
Functions can be generator functions for streaming responses:
384
+
385
+
```javascript
386
+
exportdefaultfunction*streamingFunction() {
387
+
yield"Starting process...";
388
+
yield"Processing data...";
389
+
yield"Almost done...";
390
+
return"Completed!";
391
+
}
392
+
```
393
+
394
+
The response will be a Server-Sent Events stream:
395
+
396
+
```
397
+
data: "Starting process..."
398
+
399
+
data: "Processing data..."
400
+
401
+
data: "Almost done..."
402
+
403
+
data: [DONE]"Completed!"
404
+
```
405
+
290
406
## 🌐 Frontend Hosting Deployment
291
407
292
408
### 🚀 Deploy Frontend Applications
293
409
294
-
NanoEdgeRT v2.1 introduces powerful frontend hosting capabilities, allowing you to deploy full-stack applications with custom server logic and static assets.
410
+
NanoEdgeRT v2.5 introduces powerful frontend hosting capabilities, allowing you to deploy full-stack applications with custom server logic and static assets.
0 commit comments