Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Provide mechanism to inspect an apps network traffic

オープン
#47 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript
領域
cli, networking

調査の方向性

まず、ロギングに使用されている既存の WebSocket メカニズムと、アプリの fetch() および XMLHttpRequest() の経路を確認します。issue の例から CLI トグルと出力形式を定義し、リクエストメタデータと raw JSON を独立して送信および出力できることを検証します。

索引モデルが issue の本文から書いたものです。

説明

feature

It would be nice if the CLI would provide a way to inspect an app's network traffic.
That is any calls of the app to:

That traffic would be transmitted from a running app to the CLI using the existing web-socket mechanism already used to transfer the logging messages.

Having separate XHR and Request channels would be nice. This would be similar to the channels of the same name available in the Chrome dev tools.

There could be two types of output of the network traffic on the CLI side (all three toggles could work independently):

  1. simple one-line meta data on stdout
  • toggle --enable-request-log and --disable-XHR-log
  • example output GET 200 http://foo.bar.net/some/path?queryparam=value 120ms
  1. raw network traffic in form of one JSON object per request
  • toggle --enable-raw-network
  • example output
{
        "time": 34.19247499189805,
        "request": {
          "method": "GET",
          "url": "http://foo.bar.net/some/path?queryparam=value",
          "httpVersion": "HTTP/1.1",
          "headers": [
            {
              "name": "Host",
              "value": "foo.bar.net"
            },
            {
              "name": "Connection",
              "value": "keep-alive"
            },
            {
              "name": "Pragma",
              "value": "no-cache"
            },
            {
              "name": "Cache-Control",
              "value": "no-cache"
            },
            {
              "name": "Upgrade-Insecure-Requests",
              "value": "1"
            },
            {
              "name": "User-Agent",
              "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36"
            },
            {
              "name": "Accept",
              "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"
            },
            {
              "name": "Referer",
              "value": "http://baz.net/"
            },
            {
              "name": "Accept-Encoding",
              "value": "gzip, deflate, br"
            },
            {
              "name": "Accept-Language",
              "value": "en-US,en;q=0.9,de;q=0.8"
            },
            {
              "name": "Cookie",
              "value": "SOME_ID=asdfasdfasdf; SOME_OTHER_KEY=1234;"
            }
          ],
          "queryString": [
            {
              "name": "queryparam",
              "value": "value"
            }
          ],
          "cookies": [
            {
              "name": "SOME_ID",
              "value": "asdfasdfasdf",
              "expires": null,
              "httpOnly": false,
              "secure": false
            },
            {
              "name": "SOME_OTHER_KEY",
              "value": "1234",
              "expires": null,
              "httpOnly": false,
              "secure": false
            }
          ],
          "headersSize": 1661,
          "bodySize": 0
        },
        "response": {
          "status": 303,
          "statusText": "See Other",
          "httpVersion": "HTTP/1.1",
          "headers": [
            {
              "name": "Server",
              "value": "nginx/1.10.3 (Ubuntu)"
            },
            {
              "name": "Date",
              "value": "Fri, 02 Nov 2018 16:54:03 GMT"
            },
            {
              "name": "Content-Length",
              "value": "0"
            },
            {
              "name": "Connection",
              "value": "keep-alive"
            },
            {
              "name": "Location",
              "value": "http://some.other.url"
            },
            {
              "name": "Strict-Transport-Security",
              "value": "max-age=15768000"
            }
          ],
          "cookies": [],
          "content": {
            "size": 0,
            "mimeType": "x-unknown",
            "compression": 0
          },
          "redirectURL": "http://some.other.url",
          "headersSize": 492,
          "bodySize": 0,
          "_transferSize": 492
        }
}
主要言語
JavaScript
スター
11
フォーク
4
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eclipsesource/tabris-js-cli のほかの issue

eclipsesource/tabris-js-cli の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。