blob: 4989a8eb086172043d48cd599d42c1508676e9c4 [file] [log] [blame]
// Copyright 2014 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <libwebserv/request_handler_callback.h>
namespace libwebserv {
RequestHandlerCallback::RequestHandlerCallback(
const base::Callback<HandlerSignature>& callback) : callback_(callback) {
}
void RequestHandlerCallback::HandleRequest(std::unique_ptr<Request> request,
std::unique_ptr<Response> response) {
callback_.Run(std::move(request), std::move(response));
}
} // namespace libwebserv