| 1 | package Net::HTTP::Spore::Middleware::Format::YAML; | ||
| 2 | 2 | $Net::HTTP::Spore::Middleware::Format::YAML::VERSION = '0.09'; | |
| 3 | # ABSTRACT: middleware for YAML format | ||
| 4 | |||
| 5 | 2 | ▶ | use YAML; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 2 | extends 'Net::HTTP::Spore::Middleware::Format'; | |
| 8 | |||
| 9 | 0 | ▶ | sub encode { YAML::Decode( $_[1] ); } |
|
Subroutine
encode: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 10 | 1 | ▶ | sub decode { YAML::Load( $_[1] ); } |
|
Subroutine
decode: called CC=1 SCAR=0.0
Pod
documented
| |||
| 11 | 1 | ▶ | sub accept_type { ( 'Accept' => 'text/x-yaml' ) } |
|
Subroutine
accept_type: called CC=1 SCAR=0.0
Pod
documented
| |||
| 12 | 0 | ▶ | sub content_type { ( 'Content-Type' => 'text/x-yaml' ) } |
|
Subroutine
content_type: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 13 | |||
| 14 | 2 | 1; | |
| 15 | |||
| 16 | __END__ | ||