Rev python example
This commit is contained in:
		
							
								
								
									
										15
									
								
								server.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								server.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
#-----------------------------------------------------------------------------------------
 | 
			
		||||
# Copyright (c) Microsoft Corporation. All rights reserved.
 | 
			
		||||
# Licensed under the MIT License. See LICENSE in the project root for license information.
 | 
			
		||||
#-----------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
import socketserver
 | 
			
		||||
import http.server
 | 
			
		||||
 | 
			
		||||
RequestHandler = http.server.SimpleHTTPRequestHandler
 | 
			
		||||
 | 
			
		||||
PORT = 5000
 | 
			
		||||
 | 
			
		||||
with socketserver.TCPServer(("", PORT), RequestHandler) as httpd:
 | 
			
		||||
    print("Server runnong on port", PORT)
 | 
			
		||||
    httpd.serve_forever()
 | 
			
		||||
		Reference in New Issue
	
	Block a user