*Sets new request headers or updates the existing.*

        ``headers``: The headers to add or update as a JSON object or a
        dictionary.

        *Examples*

        | `Set Headers` | { "authorization": "Basic QWxhZGRpbjpPcGVuU2VzYW1"} |
        | `Set Headers` | { "Accept-Encoding": "identity"} |
        | `Set Headers` | ${auth_dict} |

def set_headers(self, headers):
        """*Sets new request headers or updates the existing.*

        ``headers``: The headers to add or update as a JSON object or a
        dictionary.

        *Examples*

        | `Set Headers` | { "authorization": "Basic QWxhZGRpbjpPcGVuU2VzYW1"} |
        | `Set Headers` | { "Accept-Encoding": "identity"} |
        | `Set Headers` | ${auth_dict} |
        """
        self.request["headers"].update(self._input_object(headers))
        return self.request["headers"]