|
| | ServiceBase (const unsigned int myscope_) |
| | Constructor : to be used by inherited classes. More...
|
| |
| void | HttpErrorAction (typename HttpServerT::RespPtr response, typename HttpServerT::ReqPtr request, int ec, const char *em) |
| | HttpErrorAction : Error Action Template no payload maybe template. More...
|
| |
| void | HttpErrorAction (typename HttpServerT::RespPtr response, typename HttpServerT::ReqPtr request, int ec, const char *em, std::string payload) |
| | HttpErrorAction : Error Action Template with payload no template. More...
|
| |
| void | HttpOKAction (typename HttpServerT::RespPtr response, typename HttpServerT::ReqPtr request, int ec, const char *em, const char *content_type, std::string &payload, bool add_cors) |
| | HttpOKAction : OK Action template. More...
|
| |
| bool | JsonRequest (typename HttpServerT::ReqPtr request) |
| | JsonRequest : Check if request is json from Content-Type and Accept fields. More...
|
| |
|
|
const unsigned int | myscope |
| |
§ ServiceBase()
template<class HttpServerT >
Constructor : to be used by inherited classes.
§ HttpErrorAction() [1/2]
template<class HttpServerT >
| void identt::query::ServiceBase< HttpServerT >::HttpErrorAction |
( |
typename HttpServerT::RespPtr |
response, |
|
|
typename HttpServerT::ReqPtr |
request, |
|
|
int |
ec, |
|
|
const char * |
em |
|
) |
| |
|
inlineprotected |
HttpErrorAction : Error Action Template no payload maybe template.
- Parameters
-
| response | typename HttpServerT::RespPtr response |
| request | typename HttpServerT::ReqPtr request |
| ec | int http error code |
| em | const char* http status message |
- Returns
- none
§ HttpErrorAction() [2/2]
template<class HttpServerT >
| void identt::query::ServiceBase< HttpServerT >::HttpErrorAction |
( |
typename HttpServerT::RespPtr |
response, |
|
|
typename HttpServerT::ReqPtr |
request, |
|
|
int |
ec, |
|
|
const char * |
em, |
|
|
std::string |
payload |
|
) |
| |
|
inlineprotected |
HttpErrorAction : Error Action Template with payload no template.
- Parameters
-
| response | typename HttpServerT::RespPtr response |
| request | typename HttpServerT::ReqPtr request |
| ec | int http error code |
| em | const char* http status message |
| payload | std::string payload |
- Returns
- none
§ HttpOKAction()
template<class HttpServerT >
| void identt::query::ServiceBase< HttpServerT >::HttpOKAction |
( |
typename HttpServerT::RespPtr |
response, |
|
|
typename HttpServerT::ReqPtr |
request, |
|
|
int |
ec, |
|
|
const char * |
em, |
|
|
const char * |
content_type, |
|
|
std::string & |
payload, |
|
|
bool |
add_cors |
|
) |
| |
|
inlineprotected |
HttpOKAction : OK Action template.
- Parameters
-
| response | typename HttpServerT::RespPtr response |
| request | typename HttpServerT::ReqPtr request |
| ec | int http error code |
| em | const char* http status message |
| content_type | const char* content type |
| payload | std::string& payload |
| add_cors | bool add cors headers |
- Returns
- none
§ JsonRequest()
template<class HttpServerT >
JsonRequest : Check if request is json from Content-Type and Accept fields.
- Parameters
-
| request | typename HttpServerT::ReqPtr request |
- Returns
- bool is json
The documentation for this class was generated from the following file: