Skip to content
This repository has been archived by the owner on Feb 12, 2025. It is now read-only.

Commit

Permalink
adding a new preparer for MERGE used in the Storage API's
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Jun 19, 2019
1 parent 98c2976 commit bebc4ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autorest/preparer.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ func AsGet() PrepareDecorator { return WithMethod("GET") }
// AsHead returns a PrepareDecorator that sets the HTTP method to HEAD.
func AsHead() PrepareDecorator { return WithMethod("HEAD") }

// AsHead returns a PrepareDecorator that sets the HTTP method to MERGE.
func AsMerge() PrepareDecorator { return WithMethod("MERGE") }

// AsOptions returns a PrepareDecorator that sets the HTTP method to OPTIONS.
func AsOptions() PrepareDecorator { return WithMethod("OPTIONS") }

Expand Down

0 comments on commit bebc4ed

Please sign in to comment.