8000 opine/examples at 2.3.3 · cmorten/opine · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"examples","repo":{"id":265215050,"defaultBranch":"main","name":"opine","ownerLogin":"cmorten","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2020-05-19T10:20:52.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/11313985?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"2.3.3","listCacheKey":"v0:1681660461.0","canEdit":false,"refType":"tag","currentOid":"b6f175f139747611bcbf4548f790dc62d26413c4"},"tree":{"items":[{"name":"assigned-port","path":"examples/assigned-port","contentType":"directory"},{"name":"content-negotiation","path":"examples/content-negotiation","contentType":"directory"},{"name":"cors","path":"examples/cors","contentType":"directory"},{"name":"dejs","path":"examples/dejs","contentType":"directory"},{"name":"downloads","path":"examples/downloads","contentType":"directory"},{"name":"error-pages","path":"examples/error-pages","contentType":"directory"},{"name":"error","path":"examples/error","contentType":"directory"},{"name":"eta","path":"examples/eta","contentType":"directory"},{"name":"graphql","path":"examples/graphql","contentType":"directory"},{"name":"hello-world","path":"examples/hello-world","contentType":"directory"},{"name":"json","path":"examples/json","contentType":"directory"},{"name":"location","path":"examples/location","contentType":"directory"},{"name":"multi-router","path":"examples/multi-router","contentType":"directory"},{"name":"mvc","path":"examples/mvc","contentType":"directory"},{"name":"proxy","path":"examples/proxy","contentType":"directory"},{"name":"raw","path":"examples/raw","contentType":"directory"},{"name":"react","path":"examples/react","contentType":"directory"},{"name":"redirect","path":"examples/redirect","contentType":"directory"},{"name":"static-files","path":"examples/static-files","contentType":"directory"},{"name":"text","path":"examples/text","contentType":"directory"},{"name":"urlencoded","path":"examples/urlencoded","contentType":"directory"},{"name":"websockets","path":"examples/websockets","contentType":"directory"},{"name":"README.md","path":"examples/README.md","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eExamples\u003c/h1\u003e\u003ca id=\"user-content-examples\" class=\"anchor\" aria-label=\"Permalink: Examples\" href=\"#examples\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThis directory contains a series of self-contained examples that you can use as\nstarting points for your app, or as snippets to pull into your existing\napplications:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/assigned-port\"\u003eassigned-port\u003c/a\u003e - A basic example of starting an Opine server\nwith a port that is assigned for you.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/content-negotiation\"\u003econtent-negotiation\u003c/a\u003e - An example of how to perform\ncontent negotiation using the \u003ccode\u003eres.format()\u003c/code\u003e method.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/cors\"\u003ecors\u003c/a\u003e - An example of using CORS with Opine.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/dejs\"\u003edejs\u003c/a\u003e - Example of how to use Opine's template engine and rendering\ncapabilities with the \u003ccode\u003edejs\u003c/code\u003e module.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/downloads\"\u003edownloads\u003c/a\u003e - Dummy file index server using path matching\npatterns and \u003ccode\u003eres.download()\u003c/code\u003e to serve files to the user.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/error\"\u003eerror\u003c/a\u003e - An example of how to use and write error middleware.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/error-pages\"\u003eerror-pages\u003c/a\u003e - Example of how to use Opine's template engine\nand rendering capabilities for custom error pages.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/eta\"\u003eeta\u003c/a\u003e - Example of how to use Opine's template engine and rendering\ncapabilities with the \u003ccode\u003eeta\u003c/code\u003e template engine.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/graphql\"\u003egraphql\u003c/a\u003e - Example of how to use Opine with\n\u003ca href=\"https://github.com/deno-libs/gql\"\u003egql\u003c/a\u003e for a simple GraphQL server.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/hello-world\"\u003ehello-world\u003c/a\u003e - A basic example of how to configure and start\nan Opine server.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/json\"\u003ejson\u003c/a\u003e - An example of how to use the \u003ccode\u003ejson\u003c/code\u003e body-parser middleware in\nyour Opine applications.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/location\"\u003elocation\u003c/a\u003e - An example of how set the \u003ccode\u003eLocation\u003c/code\u003e header using\n\u003ccode\u003eres.location()\u003c/code\u003e for a \u003ccode\u003e301\u003c/code\u003e redirect.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/multi-router\"\u003emulti-router\u003c/a\u003e - An example of how to use the Opine \u003ccode\u003eRouter\u003c/code\u003e\nto mount several controllers onto a path within an application / API.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/mvc\"\u003emvc\u003c/a\u003e - A basic MVC-style controllers example.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/proxy\"\u003eproxy\u003c/a\u003e - Example using \u003ccode\u003eopine-http-proxy\u003c/code\u003e as a proxy middleware.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/raw\"\u003eraw\u003c/a\u003e - An example of how to use the \u003ccode\u003eraw\u003c/code\u003e body-parser middleware in\nyour Opine applications.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/react\"\u003ereact\u003c/a\u003e - An example of how you can use Opine with React.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/redirect\"\u003eredirect\u003c/a\u003e - An example of how to redirect using \u003ccode\u003eres.redirect\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/static-files\"\u003estatic-files\u003c/a\u003e - An example of how to serve static files to a\nuser using the Opine \u003ccode\u003eserveStatic\u003c/code\u003e middleware.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/text\"\u003etext\u003c/a\u003e - An example of how to use the \u003ccode\u003etext\u003c/code\u003e body-parser middleware in\nyour Opine applications.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/cmorten/opine/blob/2.3.3/examples/urlencoded\"\u003eurlencoded\u003c/a\u003e - An example of how to use the \u003ccode\u003eurlencoded\u003c/code\u003e\nbody-parser middleware in your Opine applications.\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Examples","anchor":"examples","htmlText":"Examples"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fcmorten%2Fopine%2Ftree%2F2.3.3%2Fexamples"}},"totalCount":23,"showBranchInfobar":false},"fileTree":{"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":".vscode","path":".vscode","contentType":"directory"},{"name":"benchmarks","path":"benchmarks","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"examples","path":"examples","contentType":"directory"},{"name":"src","path":"src","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"CODE_OF_CONDUCT.md","path":"CODE_OF_CONDUCT.md","contentType":"file"},{"name":"EXPRESS_LICENSE.md","path":"EXPRESS_LICENSE.md","contentType":"file"},{"name":"LICENSE.md","path":"LICENSE.md","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"SECURITY.md","path":"SECURITY.md","contentType":"file"},{"name":"deps.ts","path":"deps.ts","contentType":"file"},{"name":"egg.json","path":"egg.json","contentType":"file"},{"name":"mod.ts","path":"mod.ts","contentType":"file"},{"name":"version.ts","path":"version.ts","contentType":"file"}],"totalCount":18}},"fileTreeProcessingTime":9.586542,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/cmorten/opine/branches":{"post":"exFv3J2IPThXmtyqjLOpY-bbIUqcPqfNwaNHmbUwGpQ5Hnr59JjoNGyHM3f_SFZHDZAhrzEt_5_skT055-x49Q"},"/cmorten/opine/branches/fetch_and_merge/2.3.3":{"post":"3c8YMl1twvC-ruy6u2gWLzOKuhUH0IzPYBCfYfT4QD0euNU4tiQg5rDzVwlLwtakFWjfTccrb1kAgR_QMUB_Og"},"/cmorten/opine/branches/fetch_and_merge/2.3.3?discard_changes=true":{"post":"8vMaZi5TSIm7I5CD4YZ57_l-_MWI5Xn-yVuZNDJgVs8xhNdsxRqqn7V-KzARLLlk35yZnUgemmipyhmF99hpyA"}}},"title":"opine/examples at 2.3.3 · cmorten/opine","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-d30550df4878.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
0