openapi-backend
openapi-backend copied to clipboard
Return mocked headers from mockResponseForOperation(...)
Headers are often needed when mocking api responses. When using mockResponseForOperation(...) method, it would be helpful to have the same functionality available for the header definitions for the responses. mockResponseForOperation(...) could return a { status, mock, headers } object.