on 2022 Jan 28 7:57 AM
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);
You can use .withHeader(..)
before .executeRequest(..)
to add headers to the request as documented here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.