/t/010_core/response-coerce_headers.t

http://github.com/http-engine/HTTP-Engine · Raku · 12 lines · 10 code · 2 blank · 0 comment · 0 complexity · 5c47b7700143b76a4ffc6c08d3f7c3bd MD5 · raw file

  1. use strict;
  2. use warnings;
  3. use Test::More tests => 1;
  4. use HTTP::Engine::Response;
  5. my $res = HTTP::Engine::Response->new(
  6. headers => {
  7. 'X-Foo' => 'bar',
  8. },
  9. );
  10. is $res->header('X-Foo'), 'bar';