'Handle HTTP01 provisioned resources.'

def handle_simple_http_resource(self):

    for resource in self.simple_http_resources:
        if (resource.chall.path == self.path):
            self.log_message('Serving    HTTP01    with    token    %r', resource.chall.encode('token'))
            self.send_response(http_client.OK)
            self.end_headers()
            self.wfile.write(resource.validation.encode())
            return
    else:
        self.log_message('No    resources    to    serve')
    self.log_message('%s    does    not    correspond    to    any    resource.    ignoring', self.path)
