HttpClient.DefaultRequestHeaders() Method
Version: Available or changed with runtime version 1.0.
Gets the default request headers which should be sent with each request.
Syntax
CurrentDefaultRequestHeaders := HttpClient.DefaultRequestHeaders()
Note
This method can be invoked using property access syntax.
Parameters
HttpClient
Type: HttpClient
An instance of the HttpClient data type.
Return Value
CurrentDefaultRequestHeaders
Type: HttpHeaders
The default request headers which should be sent with each request.
Remarks
The HttpHeaders variable is a reference type. When you add a header to this variable, the default headers are changed. You cannot set another HttpHeaders object as a default header, you have to update the header fetched from HttpClient.
See Also
HttpClient Data Type
Get Started with AL
Developing Extensions
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈