edgexfoundry / go-mod-core-contracts

Owner: Core/Support WG
Apache License 2.0
27 stars 67 forks source link

Add a Post Request With Headers utility function for HTTP clients #954

Closed lindseysimple closed 5 days ago

lindseysimple commented 1 week ago

πŸš€ Feature Request

Relevant Package [REQUIRED]

This feature request is for all EdgeX Services which use the go-mod-core-contracts module. ### Description [**REQUIRED**] Currently theres's no send `Post` request utility functions in the http clients [clients/http/utils/request.go](https://github.com/edgexfoundry/go-mod-core-contracts/blob/main/clients/http/utils/request.go) supports passing custom request headers ### Describe the solution you'd like A new `PostRequestWithRawDataAndHeaders` utility function is created to fulfill the requirement for http clients.