Compare commits
	
		
			3 Commits
		
	
	
		
			93f5bd30b9
			...
			d7d2320103
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| d7d2320103 | |||
| 8c2a3eb798 | |||
| e0b2739408 | 
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -1 +0,0 @@
 | 
				
			|||||||
.vscode
 | 
					 | 
				
			||||||
							
								
								
									
										20
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					  "version": "0.2.0",
 | 
				
			||||||
 | 
					  "configurations": [
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "request": "launch",
 | 
				
			||||||
 | 
					      "name": "test deno-http",
 | 
				
			||||||
 | 
					      "type": "node",
 | 
				
			||||||
 | 
					      "program": "${workspaceFolder}/example/test.ts",
 | 
				
			||||||
 | 
					      "cwd": "${workspaceFolder}",
 | 
				
			||||||
 | 
					      "runtimeExecutable": "C:\\Users\\Admin\\.deno\\bin\\deno.EXE",
 | 
				
			||||||
 | 
					      "runtimeArgs": [
 | 
				
			||||||
 | 
					        "run",
 | 
				
			||||||
 | 
					        "--unstable",
 | 
				
			||||||
 | 
					        "--inspect-wait",
 | 
				
			||||||
 | 
					        "--allow-all"
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "attachSimplePort": 9229
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  ]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										4
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					  "deno.enable": true,
 | 
				
			||||||
 | 
					  "deno.unstable": true
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -195,6 +195,12 @@ export class HTTPServer {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  close() {
 | 
				
			||||||
 | 
					    if (this.server) {
 | 
				
			||||||
 | 
					      this.server.close();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  error(handler: RouteHandler) {
 | 
					  error(handler: RouteHandler) {
 | 
				
			||||||
    this.notFoundHandler = handler;
 | 
					    this.notFoundHandler = handler;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user