Set header
Last updated
Last updated
This is pre-built Action located under the WebService List Element. It instructs the Avo Assure Client to set the header for the web service. The "Set header" Action is used in the Avo Assure to configure the HTTP request header.
Note: This step is part of the web service request process.
Input: Request_header
Output: N/A
In a healthcare application, an API is used to retrieve patient records, and the request requires an authorization token in the header to ensure that only authenticated users can access the data. The "Set header" Action is used to configure the header information for the web service request, including the authorization token.
The Avo Assure involves verifying that the system correctly includes the necessary authentication token in the header when sending a GET request to retrieve patient records. The "Set header" Action will be used to add the Authorization header with the token to the request.
Header: Authorization: Bearer abc123xyz456
(Web service endpoint URL: https://api.healthcareapp.com/v1/patient/records
HTTP Method: GET)
The application should send a GET request to the https://api.healthcareapp.com/v1/patient/records endpoint with the correct Authorization header (Authorization: Bearer abc123xyz456).
The Set header Action is configuring the HTTP request header as Authorization: Bearer abc123xyz456.