Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "lib/parseHeaders"

Copyright (c) Jonathan Cardoso Machado. All Rights Reserved.

This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.

Index

Type aliases

Functions

Type aliases

HeaderInfo

HeaderInfo: { result?: undefined | { code: number; reason: string; version: string } } & { Set-Cookie?: string[] } & {}

Whe data parsing is enabled on the {@link "Curl".Curl} instance, the headers parameter passed to the end event's callback will be one array of this type.

Functions

parseHeaders

  • parseHeaders(headersString: string): HeaderInfo[]
  • Parses the headers that were stored while the request was being processed.

    internal

    Parameters

    • headersString: string

    Returns HeaderInfo[]

Generated using TypeDoc