asyrjasalo / RESTinstance

Robot Framework library for RESTful JSON APIs
https://asyrjasalo.github.io/RESTinstance
GNU Lesser General Public License v3.0
204 stars 84 forks source link

Add possibility to remove headers #130

Closed asimell closed 1 year ago

asimell commented 2 years ago

Currently Set Headers only updates the headers dictionary. There is no option to remove a header once it's set. Either Set Headers should support unsetting a header or there should be a new keyword that removes a given header from headers.

Functionality could be e.g.

# Assume headers {"a": "1", "b": "2"} are set
Remove Header    a    # removes header "'a': '1'"
Remove Header    c    # does nothing as there's no such header set OR raises an error
Remove Header    c    strict=${FALSE}    # Same as above, but doesn't raise an error
github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.