'Serve a GET request.'

def do_GET(self, send_body=True):

    sock = self.rfile.raw._sock
    context = sock.context
    stats = {'session_cache': context.session_stats(), 'cipher': sock.cipher(), 'compression': sock.compression()}
    body = pprint.pformat(stats)
    body = body.encode('utf-8')
    self.send_response(200)
    self.send_header('Content-type', 'text/plain;    charset=utf-8')
    self.send_header('Content-Length', str(len(body)))
    self.end_headers()
    if send_body:
        self.wfile.write(body)
