cancel
Showing results for 
Search instead for 
Did you mean: 

Accept-Language Header in Cloud sdk code.

0 Kudos
32,281

Dear Expert,

I have the code of SAP Cloud sdk. To make it language dependent how can we add the header "Accept-Language" in the code, just as we add header in postman?

Regards,

Preeti

Code:

equipmentService.getAllEquipment().filter(Equipment.EQUIPMENT.eq(equipmentId)).executeRequest(destination);

Accepted Solutions (1)

Accepted Solutions (1)

matthiaskuhr
Product and Topic Expert
Product and Topic Expert

You can use .withHeader(..) before .executeRequest(..) to add headers to the request as documented here.

Answers (0)