2010-11-16から1日間の記事一覧
次のようにrenderメソッドでformat設定してContent-Typeを指定できる。 $self->render(text => 'Hello!', format => 'txt'); デフォルトでformatに設定できるものは次のようになっている。 atom => 'application/atom+xml', bin => 'application/octet-strea…
次のようにrenderメソッドでformat設定してContent-Typeを指定できる。 $self->render(text => 'Hello!', format => 'txt'); デフォルトでformatに設定できるものは次のようになっている。 atom => 'application/atom+xml', bin => 'application/octet-strea…