blob: 89c82e0bf2a3147b14defe74848a7020e8d19c8b [file] [log] [blame]
// Copyright 2014 The Android Open Source Project
//
// This software is licensed under the terms of the GNU General Public
// License version 2, as published by the Free Software Foundation, and
// may be copied, distributed, and modified under those terms.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
#pragma once
#include <stddef.h>
namespace android {
namespace base {
// Return true iff the content of |line|, or |lineLen| characters,
// matches an HTTP request definition. See section 5.1 or RFC 2616.
bool httpIsRequestLine(const char* line, size_t lineLen);
} // namespace base
} // namespace android