搜尋套件、儲存庫與 APP 分類

套件詳情v2.7.1

instabug_http_client

此套件是 instabug_flutter 的附加元件。它會攔截使用 http 套件執行的任何請求,並將這些請求傳送至將發送到儀表板的報告中。

AndroidiOS
近 30 天下載
494
喜歡數
1
Pub 分數
160

安裝套件

flutter pub add instabug_http_client

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

instabug_http_client 套件透過自動攔截透過 http 套件發出的 HTTP 請求,增強了 instabug_flutter SDK。它會擷取請求和回應的詳細資料,包括標頭、URL 和狀態碼,並包含在傳送至 Instabug 面板的錯誤或回饋報告中。這有助於開發人員更有效率地調試網路相關問題,直接在報告中提供失敗或異常 HTTP 互動的完整背景資訊。整合過程無縫且設定簡單。

適用情境

  • 調試失敗的 API 呼叫
  • 追蹤網路請求行為
  • 透過 HTTP 上下文增強崩潰報告
  • 監控HTTP端點的性能
  • 自動記錄網絡錯誤

主要特色

  • 攔截 http 包請求
  • 將 HTTP 詳細資訊附加到報告中
  • 與 instabug_flutter 的無縫整合
  • 網路呼叫的自動錯誤日誌記錄
  • 同時支援 Android 和 iOS

適合對象

  • 使用 instabug_flutter 的 Flutter 應用
  • 專注於調試網路問題的團隊
  • 需要詳細 HTTP 日誌記錄的應用程式
  • 使用 http 包的開發人員
  • 需要增強崩潰報告的項目

使用建議

  • 需要設置 instabug_flutter
  • 由於HTTP資料,報告大小可能增加
  • 不相容非 http 包請求
  • 僅限 HTTP 客戶端攔截
  • 依賴於 Instabug 後端服務

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

instabug_http_client

A dart package to support Instabug network logging for the external dart http package.

Getting Started

You can choose to attach all your network requests data to the Instabug reports being sent to the dashboard. See the details below on how to enable the feature for the http package.

Installation
  1. Add the dependency to your project pubspec.yml:
dependencies:
  instabug_http_client:
  1. Install the package by running the following command.
flutter packages get
Usage

To enable logging, use the custom http client provided by Instabug:

final client = InstabugHttpClient();

Then proceed to use the package normally:

final response = await client.get(Uri.parse(URL));

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。