sub send_json_data: Runmode { my $self = shift; $self->header_add(-type=>"application/json"); ... }