-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add shortcut for using a custom catch-all handler (#17)
* Add mechanism for using a custom catch-all handler Implemented as an option to server instantiation. * use existing utility to set http status code * update mechanism of adding the catchAll handler via server options It now internally uses the router catch-all * Simplify route matching logic * Update to [email protected] * Simplify request configuration * Simplify syntax in code example Co-authored-by: Seth Holladay <[email protected]>
- Loading branch information
Showing
8 changed files
with
71 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import React from 'https://dev.jspm.io/[email protected]'; | ||
import ReactDOMServer from 'https://dev.jspm.io/[email protected]/server'; | ||
import * as cookie from 'https://deno.land/std@v0.53.0/http/cookie.ts'; | ||
import * as http from 'https://deno.land/std@v0.53.0/http/server.ts'; | ||
import { Status as status, STATUS_TEXT as statusText } from 'https://deno.land/std@v0.53.0/http/http_status.ts'; | ||
import * as cookie from 'https://deno.land/std@v0.56.0/http/cookie.ts'; | ||
import * as http from 'https://deno.land/std@v0.56.0/http/server.ts'; | ||
import { Status as status, STATUS_TEXT as statusText } from 'https://deno.land/std@v0.56.0/http/http_status.ts'; | ||
|
||
export { | ||
React, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters