RESTinstance
RESTinstance copied to clipboard
How to validate specific http header from the response?
- Is it possible to validate specific header from the response?
- How to validate response time from the response?
Hi, sorry for the delay.
- Yes, you can query
response headers
normally. For exampleMy Keyword Get /api/forms/1 ${headers}= Output response headers # Or String response headers Content-Type application/json
- The headers typically have a
Date
key, so you can just do something like thisMy Keyword Get /api/forms/1 ${date}= Output response headers Date # Validate the time using your favourite method
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.