Commit d2fa2859 authored by Yann Garcia's avatar Yann Garcia
Browse files

Add new template for 201 Created HTTP response

parent 6959b8be
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -223,12 +223,19 @@ module LibHttp_Templates {
          statustext    := "Created"
      } // End of template mw_http_response_201_created

      template (present) Response mw_http_response_201_created_no_body(
                                                                       template (present) Headers p_header := ?
      ) modifies mw_http_response_ok_no_body := {
          statuscode    := 201,
          statustext    := "Created"
      } // End of template mw_http_response_201_created_no_status_text

      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    := ?
          statustext    := "Created"
      } // End of template mw_http_response_201_created_no_status_text

      template (present) Response mw_http_response_202_accepted(