Mercurial > hg > nginx-tests
comparison grpc.t @ 1362:6874b32dc3d2
Tests: renamed some grpc.t tests.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 06 Aug 2018 16:46:34 +0300 |
parents | 351b95be742b |
children | 23e407a72fe9 |
comparison
equal
deleted
inserted
replaced
1361:6c4f9941ae9f | 1362:6874b32dc3d2 |
---|---|
375 | 375 |
376 $f->{http_start}('/SayPadding'); | 376 $f->{http_start}('/SayPadding'); |
377 $f->{data}('Hello'); | 377 $f->{data}('Hello'); |
378 $frames = $f->{http_end}(body_padding => 42); | 378 $frames = $f->{http_end}(body_padding => 42); |
379 ($frame) = grep { $_->{type} eq "DATA" } @$frames; | 379 ($frame) = grep { $_->{type} eq "DATA" } @$frames; |
380 is($frame->{data}, 'Hello world', 'response - DATA'); | 380 is($frame->{data}, 'Hello world', 'DATA padding'); |
381 is($frame->{length}, 11, 'response - DATA length'); | 381 is($frame->{length}, 11, 'DATA padding - length'); |
382 is($frame->{flags}, 0, 'response - DATA flags'); | 382 is($frame->{flags}, 0, 'DATA padding - flags'); |
383 | 383 |
384 # :authority inheritance | 384 # :authority inheritance |
385 | 385 |
386 $frames = $f->{http_start}('/SayHello?if=1'); | 386 $frames = $f->{http_start}('/SayHello?if=1'); |
387 ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; | 387 ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; |