Skip to content

Commit

Permalink
Merge branch 'andyohart/managed-identity' of https://github.com/Azure…
Browse files Browse the repository at this point in the history
  • Loading branch information
4gust committed Nov 18, 2024
2 parents 4f3b414 + 2c6dfda commit 191e9c2
Show file tree
Hide file tree
Showing 3 changed files with 691 additions and 164 deletions.
7 changes: 7 additions & 0 deletions apps/internal/mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ func WithCallback(callback func(*http.Request)) responseOption {
})
}

// WithHTTPHeader sets the HTTP headers of the response to the specified value.
func WithHTTPHeader(header http.Header) responseOption {
return respOpt(func(r *response) {
r.headers = header
})
}

// WithHTTPStatusCode sets the HTTP statusCode of response to the specified value.
func WithHTTPStatusCode(statusCode int) responseOption {
return respOpt(func(r *response) {
Expand Down
Loading

0 comments on commit 191e9c2

Please sign in to comment.