Skip to content

Commit ccde40c

Browse files
Simon Rüeggdeepmap-marcinr
authored andcommitted
Introduce helper function for PATCH method (#123)
Signed-off-by: Simon Rüegg <simon.ruegg@vshn.ch>
1 parent 66e1d1b commit ccde40c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

request_helpers.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ func (r *RequestBuilder) Put(path string) *RequestBuilder {
7171
return r.WithMethod("PUT", path)
7272
}
7373

74+
func (r *RequestBuilder) Patch(path string) *RequestBuilder {
75+
return r.WithMethod("PATCH", path)
76+
}
77+
7478
func (r *RequestBuilder) Delete(path string) *RequestBuilder {
7579
return r.WithMethod("DELETE", path)
7680
}

0 commit comments

Comments
 (0)