-
-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededhousekeepingCleanup and paying beck technical debtCleanup and paying beck technical debt
Description
The examples contained with pogo are very basic.
-
working with request objects should be demonstrated
-
working with path parameters should be demonstrated
import pogo from 'https://deno.land/x/pogo/main.js'; server.router.put('/path/{id}', async (request:pogo.Request) => { var id:String = request.route.params.id; }); -
working with request body should be demonstrated
import pogo from 'https://deno.land/x/pogo/main.js'; import { bodyReader } from "https://deno.land/std/http/io.ts"; server.router.put('/path', async (request:pogo.Request) => { const reader = bodyReader(request.raw.contentLength, request.raw.r); const bufferContent = await Deno.readAll(reader); const bodyText = new TextDecoder().decode(bufferContent); const body = JSON.parse(bodyText); }); -
etc. (file upload, headers, content types, ..)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededhousekeepingCleanup and paying beck technical debtCleanup and paying beck technical debt