Commit bb6317e2 authored by YannGarcia's avatar YannGarcia
Browse files

Add PATCH templates

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