Provide mechanism to inspect an apps network traffic
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- cli, networking
Direzione di ricerca
Iniziare esaminando il meccanismo WebSocket esistente utilizzato per il logging e i percorsi fetch() e XMLHttpRequest() dell'app. Definire le opzioni CLI e i formati di output in base agli esempi dell'issue, quindi verificare che i metadati della richiesta e il JSON non elaborato possano essere trasmessi ed emessi in modo indipendente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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):
- simple one-line meta data on
stdout
- toggle
--enable-request-logand--disable-XHR-log - example output
GET 200 http://foo.bar.net/some/path?queryparam=value 120ms
- 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
}
}
- Lingua principale
- JavaScript
- Stelle
- 11
- Fork
- 4
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di eclipsesource/tabris-js-cli
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Document TABRIS_BUILD_KEYApertadoc
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
-
feature
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
build
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
cli help should adjust to terminal width (or assume less space available)Forse di nuovo libera @cpetrov l’ha presa 2338 giorni fa e non c’è nessuna pull request aperta. Aperta
eclipsesource/tabris-js-cli#32 · 1 assegnatario ·
Tutte le issue di eclipsesource/tabris-js-cli
Issue simili
-
refactor
Difficoltà 2/5 Mezza giornata Idoneità per principianti 84/100
I maintainer di solito rispondono entro 5 giorni
-
translation
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ciderapp/translations#87 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
component: split-view platform: windows
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
zen-browser/desktop#15616 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno