AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::rest::Body< T > Class Template Reference

#include <body.hpp>

Collaboration diagram for anch::rest::Body< T >:

Public Member Functions

 Body (T value)
T & operator* () noexcept
const T & operator* () const noexcept
T * operator-> () noexcept
const T * operator-> () const noexcept
T & get () noexcept

Detailed Description

template<typename T>
class anch::rest::Body< T >

Request body endpoint argument.
It has to be the last endpoint argument. The body is deserialized with the codec matching the request Content-Type (see Endpoint::consumes ).

Template Parameters
Tthe body type (default constructible)
Author
Vincent Lachenal
Since
0.2

Constructor & Destructor Documentation

◆ Body()

template<typename T>
anch::rest::Body< T >::Body ( T value)
explicit

Body constructor

Parameters
valuethe body value

Member Function Documentation

◆ get()

template<typename T>
T & anch::rest::Body< T >::get ( )
noexcept

Get body value

Returns
the body value
Here is the call graph for this function:

◆ operator*() [1/2]

template<typename T>
const T & anch::rest::Body< T >::operator* ( ) const
noexcept

Access body value

Returns
the body value

◆ operator*() [2/2]

template<typename T>
T & anch::rest::Body< T >::operator* ( )
noexcept

Access body value

Returns
the body value

◆ operator->() [1/2]

template<typename T>
const T * anch::rest::Body< T >::operator-> ( ) const
noexcept

Access body value members

Returns
the body value address

◆ operator->() [2/2]

template<typename T>
T * anch::rest::Body< T >::operator-> ( )
noexcept

Access body value members

Returns
the body value address

The documentation for this class was generated from the following file: