33 lines
1.0 KiB
C++
33 lines
1.0 KiB
C++
#ifndef seafire__resources__handle_create_hxx_
|
|
#define seafire__resources__handle_create_hxx_
|
|
|
|
#include <seafire/common/invoke.hxx>
|
|
#include <seafire/protocol/media-type.hxx>
|
|
#include <seafire/protocol/rfc7231/content-type.hxx>
|
|
#include <seafire/protocol/rfc7231/location.hxx>
|
|
#include <seafire/protocol/rfc7232/etag.hxx>
|
|
#include <seafire/protocol/rfc7232/last-modified.hxx>
|
|
#include <seafire/representation/representation.hxx>
|
|
#include <seafire/resources/concepts.hxx>
|
|
#include <seafire/resources/handle-get.hxx>
|
|
#include <seafire/resources/metadata.hxx>
|
|
#include <seafire/resources/preconditions.hxx>
|
|
#include <seafire/server/request.hxx>
|
|
#include <seafire/server/response.hxx>
|
|
|
|
namespace seafire::resources
|
|
{
|
|
|
|
template<CreatableResource R>
|
|
void
|
|
handle_create(server::request_t& req,
|
|
server::response_t& res,
|
|
R const& resource,
|
|
std::optional<protocol::media_type_t> const& accepted_type);
|
|
|
|
} // namespace seafire::resources
|
|
|
|
#include <seafire/resources/handle-create.txx>
|
|
|
|
#endif
|