Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ jobs:
runs-on: "windows-2022"
b2-toolset: "gcc"
generator: "MinGW Makefiles"
is-latest: false
is-latest: true
is-earliest: true
name: "MinGW"
name: "MinGW (shared)"
shared: true
build-type: "Release"
build-type: "Debug"
build-cmake: true

- compiler: "mingw"
Expand All @@ -148,9 +148,9 @@ jobs:
runs-on: "windows-2022"
b2-toolset: "gcc"
generator: "MinGW Makefiles"
is-latest: false
is-latest: true
is-earliest: true
name: "MinGW"
name: "MinGW (static)"
shared: false
build-type: "Release"
build-cmake: true
Expand Down Expand Up @@ -340,7 +340,7 @@ jobs:
b2-toolset: "gcc"
is-latest: true
name: "GCC 15: C++17-20 (ubsan)"
shared: true
shared: false
ubsan: true
build-type: "RelWithDebInfo"

Expand Down Expand Up @@ -614,7 +614,7 @@ jobs:
b2-toolset: "clang"
is-latest: true
name: "Clang 20: C++23-2C (ubsan, x86)"
shared: true
shared: false
ubsan: true
x86: true
build-type: "RelWithDebInfo"
Expand Down
4 changes: 2 additions & 2 deletions include/boost/http_proto/server/basic_router.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ class any_router
friend class http_proto::basic_router;
using opt_flags = unsigned int;

struct BOOST_SYMBOL_VISIBLE any_handler
struct BOOST_HTTP_PROTO_DECL any_handler
{
BOOST_HTTP_PROTO_DECL virtual ~any_handler();
virtual ~any_handler() = default;
virtual std::size_t count() const noexcept = 0;
virtual route_result invoke(
basic_request&, basic_response&) const = 0;
Expand Down
14 changes: 10 additions & 4 deletions include/boost/http_proto/server/route_handler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ struct Request : basic_request

/** Response object for HTTP route handlers
*/
struct BOOST_SYMBOL_VISIBLE
Response : basic_response
struct Response : basic_response
{
/** The HTTP response message
*/
Expand All @@ -87,16 +86,23 @@ struct BOOST_SYMBOL_VISIBLE
*/
capy::datastore data;

/** Constructor.
*/
BOOST_HTTP_PROTO_DECL
Response();

/** Destructor.
*/
BOOST_HTTP_PROTO_DECL virtual ~Response();
BOOST_HTTP_PROTO_DECL
virtual ~Response();

/** Reset the object for a new request.
This clears any state associated with
the previous request, preparing the object
for use with a new request.
*/
BOOST_HTTP_PROTO_DECL void reset();
BOOST_HTTP_PROTO_DECL
void reset();

/** Set the status code of the response.
@par Example
Expand Down
3 changes: 1 addition & 2 deletions include/boost/http_proto/sink.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace http_proto {
@ref source,
@ref parser.
*/
struct BOOST_SYMBOL_VISIBLE
struct BOOST_HTTP_PROTO_DECL
sink
{
/** The results of consuming data.
Expand Down Expand Up @@ -188,7 +188,6 @@ struct BOOST_SYMBOL_VISIBLE
@param more `true` if there will be one
or more subsequent calls.
*/
BOOST_HTTP_PROTO_DECL
virtual
results
on_write(
Expand Down
3 changes: 1 addition & 2 deletions include/boost/http_proto/source.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace http_proto {
@ref sink,
@ref serializer.
*/
struct BOOST_SYMBOL_VISIBLE
struct BOOST_HTTP_PROTO_DECL
source
{
/** The results of producing data.
Expand Down Expand Up @@ -191,7 +191,6 @@ struct BOOST_SYMBOL_VISIBLE
indicate failure or that no more
data remains (or both).
*/
BOOST_HTTP_PROTO_DECL
virtual
results
on_read(
Expand Down
5 changes: 0 additions & 5 deletions src/server/basic_router.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ pattern target path(use) path(get)

//------------------------------------------------


any_router::any_handler::~any_handler() = default;

//------------------------------------------------

/*
static
void
Expand Down
5 changes: 5 additions & 0 deletions src/server/route_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
namespace boost {
namespace http_proto {

Response::
Response()
{
}

Response::
~Response()
{
Expand Down
Loading