    def send_oauth_response(self, headers, body, status):
        """Send oauth response from provider return values

        Provider methods return headers, body, and status
        to be set on the response.

        This method applies these values to the Handler
        and sends the response.
        """
        self.set_status(status)
        for key, value in headers.items():
            self.set_header(key, value)
        if body:
            self.write(body)
Send oauth response from provider return values

Provider methods return headers, body, and status
to be set on the response.

This method applies these values to the Handler
and sends the response.
jupyterhub/apihandlers/auth.py