Adding headers when using httpClient.GetAsync

后端 未结 6 1242
小鲜肉
小鲜肉 2020-11-28 04:15

I\'m implementing an API made by other colleagues with Apiary.io, in a Windows Store app project.

They show this example of a method I have to implement:

<         


        
6条回答
  •  独厮守ぢ
    2020-11-28 05:19

    You can add whatever headers you need to the HttpClient.

    Here is a nice tutorial about it.

    This doesn't just reference to POST-requests, you can also use it for GET-requests.

提交回复
热议问题