2013-08-09 19:39:16 -07:00
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
/*
|
|
|
|
|
This file is part of Beast: https://github.com/vinniefalco/Beast
|
|
|
|
|
Copyright 2013, Vinnie Falco <vinnie.falco@gmail.com>
|
|
|
|
|
|
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
|
purpose with or without fee is hereby granted, provided that the above
|
|
|
|
|
copyright notice and this permission notice appear in all copies.
|
|
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
|
ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
|
*/
|
|
|
|
|
//==============================================================================
|
|
|
|
|
|
2016-03-11 06:40:37 -05:00
|
|
|
#ifndef BEAST_HTTP_NODEJS_PARSER_H_INCLUDED
|
|
|
|
|
#define BEAST_HTTP_NODEJS_PARSER_H_INCLUDED
|
2014-03-07 20:06:12 -08:00
|
|
|
|
2014-06-26 16:56:27 -07:00
|
|
|
#include <beast/http/method.h>
|
2016-03-11 06:40:37 -05:00
|
|
|
#include <beast/http/impl/http-parser/http_parser.h>
|
2014-03-19 09:24:51 -07:00
|
|
|
#include <boost/system/error_code.hpp>
|
|
|
|
|
|
2016-03-11 06:40:37 -05:00
|
|
|
beast::http::method_t
|
|
|
|
|
convert_http_method(http_method m);
|
2014-03-07 20:06:12 -08:00
|
|
|
|
2016-03-11 06:40:37 -05:00
|
|
|
namespace boost {
|
|
|
|
|
namespace system {
|
|
|
|
|
template<>
|
|
|
|
|
struct is_error_code_enum<http_errno>
|
|
|
|
|
: std::true_type
|
|
|
|
|
{
|
|
|
|
|
};
|
|
|
|
|
template<>
|
|
|
|
|
struct is_error_condition_enum<http_errno>
|
|
|
|
|
: std::true_type
|
|
|
|
|
{
|
|
|
|
|
};
|
|
|
|
|
} // system
|
|
|
|
|
} // boost
|
2013-08-16 14:41:15 -07:00
|
|
|
|
2014-03-07 20:06:12 -08:00
|
|
|
#endif
|