• Read the response body and headers

    Parameters

    • response: Response
    • OptionalreadLines: (x: string[], y: string) => void

    Returns Promise<{ bodyText: string; headers: any }>

    Object containing the body text and headers