The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.

DefaultRequestHeaders Method

Gets the default request headers which should be sent with each request.

HttpHeaders := HttpClient.DefaultRequestHeaders

Property Value

 Type: HttpHeaders


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

HTTP, JSON, TextBuilder, and XML API
Getting Started with AL
Developing Extensions