traffic_via¶
概要¶
traffic_via [OPTIONS] [VIA ...]
解説¶
traffic_via は Traffic Server の Via ヘッダー内のコードをデコードします。 Via ヘッダーの文字列はコマンドラインオプションとして渡します。文字列を囲む角括弧は省略可能です。
If the argument is '-', traffic_via will filter standard input for Via headers. This modes supports only supports Via headers that are enclosed by square brackets.
オプション¶
- -h, --help¶
使い方の情報を表示して終了します。
- -V, --version¶
バージョンを表示します。
例¶
コマンドライン引数から Via ヘッダーをデコードします:
$ traffic_via "[uScMsEf p eC:t cCMp sF]"
Via header is [uScMsEf p eC:t cCMp sF], Length is 22
Via Header Details:
Request headers received from client :simple request (not conditional)
Result of Traffic Server cache lookup for URL :miss (a cache "MISS")
Response information received from origin server :error in response
Result of document write-to-cache: :no cache write performed
Proxy operation result :unknown
Error codes (if any) :connection to server failed
Tunnel info :no tunneling
Cache Type :cache
Cache Lookup Result :cache miss (url not in cache)
Parent proxy connection status :no parent proxy or unknown
Origin server connection status :connection open failed
Decode the Via header from a curl request, using the X-Debug plugin:
$ curl -H "X-Debug: Via" -I http://test.example.com | traffic_via -
Via header is uScMsSf pSeN:t cCMi p sS, Length is 24
Via Header Details:
Request headers received from client :simple request (not conditional)
Result of Traffic Server cache lookup for URL :miss (a cache "MISS")
Response information received from origin server :connection opened successfully
Result of document write-to-cache: :no cache write performed
Proxy operation result :served or connection opened successfully
Error codes (if any) :no error
Tunnel info :no tunneling
Cache Type :cache
Cache Lookup Result :cache miss (url not in cache)
Parent proxy connection status :no parent proxy or unknown
Origin server connection status :connection opened successfully