Commit 163d1cfc authored by Yann Garcia's avatar Yann Garcia
Browse files

Prepare CDM#44 demo

parent a0803fb1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -127,7 +127,7 @@ namespace LibHelpers__Functions {
    time_t t = std::time(nullptr);
    auto tm = *std::localtime(&t);
    std::ostringstream oss;
    oss << std::put_time(&tm, "%FT%T");//%FT%T%Z
    oss << std::put_time(&tm, "%FT%TZ");//%FT%T%Z

    CHARSTRING dt(oss.str().c_str());
    loggers::get_instance().log_msg("fx__get__current__date__time: ", dt);
+8 −0
Original line number Diff line number Diff line
@@ -223,6 +223,14 @@ module LibHttp_Templates {
          statustext    := "Created"
      } // End of template mw_http_response_201_created
      
      template (present) Response mw_http_response_201_created_no_status_text(
                                                                              template (present) HttpMessageBody p_body := ?,
                                                                              template (present) Headers p_header := ?
      ) modifies mw_http_response_ok := {
          statuscode    := 201,
          statustext    := ?
      } // End of template mw_http_response_201_created_no_status_text
      
      template (present) Response mw_http_response_202_accepted(
                                                                template (present) HttpMessageBody p_body := ?,
                                                                template (present) Headers p_header := ?