Keep it short / down to the stuff that is needed
This commit is contained in:
		
					parent
					
						
							
								a10d9d4597
							
						
					
				
			
			
				commit
				
					
						2d79a810ee
					
				
			
		
					 1 changed files with 1 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -149,15 +149,10 @@ IPv6, you can inherit from HTTPServer and set the address family to
 | 
			
		|||
*AF_INET6* as follows:
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
from http.server import HTTPServer
 | 
			
		||||
 | 
			
		||||
class HTTPServerV6(HTTPServer):
 | 
			
		||||
      address_family = socket.AF_INET6
 | 
			
		||||
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
   myv6server = HTTPServerV6
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
For more details on how to use the HTTPServer in general,
 | 
			
		||||
checkout
 | 
			
		||||
[this stackoverflow post](https://stackoverflow.com/questions/23264569/python-3-x-basehttpserver-or-http-server).
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue