guv.wsgi - WSGI server

guv.wsgi.serve(server_sock, app, log_output=True)[source]

Start up a WSGI server handling requests from the supplied server socket

This function loops forever. The sock object will be closed after server exits, but the underlying file descriptor will remain open, so if you have a dup() of sock, it will remain usable.

Parameters:
  • server_sock – server socket, must be already bound to a port and listening
  • app – WSGI application callable
guv.wsgi.format_date_time(timestamp)[source]

Format a unix timestamp into an HTTP standard string