/**
 * Receives a Request or Headers objects.
 * If it's a Request returns the request.headers
 * If it's a Headers returns the object directly.
 */
export function getHeaders(requestOrHeaders) {
  if (requestOrHeaders instanceof Request) {
    return requestOrHeaders.headers;
  }
  return requestOrHeaders;
}
