Cucumber-Messages
view release on metacpan or search on metacpan
lib/Cucumber/Messages.pm view on Meta::CPAN
sub _types {
return \%types;
}
=head4 body
*
The body of the attachment. If `contentEncoding` is `IDENTITY`, the attachment
is simply the string. If it's `BASE64`, the string should be Base64 decoded to
obtain the attachment.
=cut
has body =>
(is => 'ro',
required => 1,
default => sub { '' },
);
=head4 content_encoding
*
Whether to interpret `body` "as-is" (IDENTITY) or if it needs to be Base64-decoded (BASE64).
Content encoding is *not* determined by the media type, but rather by the type
of the object being attached:
- string: IDENTITY
- byte array: BASE64
- stream: BASE64
Available constants for valid values of this field:
( run in 0.224 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )