Commit a6f53711 authored by YannGarcia's avatar YannGarcia
Browse files

Add template for HTTP PUT method

parent 806e1331
Loading
Loading
Loading
Loading
+16 −0
Original line number Original line Diff line number Diff line
@@ -102,6 +102,22 @@ module LibItsHttp_Templates {
          method        := "POST"
          method        := "POST"
        } // End of template mw_http_request_post
        } // End of template mw_http_request_post
        
        
        template (omit) Request m_http_request_put(
                                                   in charstring p_uri, 
                                                   in template (value) HeaderLines p_headers,
                                                   in template (omit) HttpMessageBody p_body := omit
        ) modifies m_http_request_get := {
          method        := "PUT"
        } // End of template m_http_request_put
        
        template Request mw_http_request_put(
                                             template (present) charstring p_uri := ?, 
                                             template (present) HeaderLines p_headers := ?,
                                             template HttpMessageBody p_body := *
        ) modifies mw_http_request_get := {
          method        := "PUT"
        } // End of template mw_http_request_put
        
        template (omit) Request m_http_request_delete(
        template (omit) Request m_http_request_delete(
                                                      in charstring p_uri, 
                                                      in charstring p_uri, 
                                                      in template (value) HeaderLines p_headers,
                                                      in template (value) HeaderLines p_headers,