| Apache2-REST documentation | Contained in the Apache2-REST distribution. |
Apache2::REST::Writer::perl - Apache2::REST::Response Writer for perl
Getter
Returns the response as yaml UTF8 bytes for output.
| Apache2-REST documentation | Contained in the Apache2-REST distribution. |
package Apache2::REST::Writer::perl ; use strict ; use Data::Dumper ;
sub new{ my ( $class ) = @_; return bless {} , $class; }
sub mimeType{ # Ideal #return 'application/json' ; # Reality return 'application/x-perl'; }
sub asBytes{ my ($self, $resp ) = @_ ; return Dumper($resp) ; } 1;