function prepareHeaders(endpointSchema) {
  const isSendInHeader = p => p.in === 'header';
  const parameters = endpointSchema.parameters || [];
  const headerParameters = parameters.filter(isSendInHeader);
  return convertParameters(headerParameters);
}
function prepareHeaders(endpointSchema) {
  const isSendInHeader = p => p.in === 'header';
  const parameters = endpointSchema.parameters || [];
  const headerParameters = parameters.filter(isSendInHeader);
  return convertParameters(headerParameters);
}
function prepareHeaders ( endpointSchema ) { const isSendInHeader = p => p . in === 'header' ; const parameters = endpointSchema . parameters || [ ] ; const headerParameters = parameters . filter ( isSendInHeader ) ; return convertParameters ( headerParameters ) ; }
Imports insomnia definitions of header parameters.

@param {Object} endpointSchema - OpenAPI 3 endpoint schema
@returns {Object[]} array of parameters definitions
Imports insomnia definitions of header parameters .
Prepare headers for the endpoint