-
-
11 Sep 2020 12:38:26 UTC
- Distribution: Catalyst-Runtime
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository (git clone)
- Issues (27)
- Testers (2472 / 1 / 0)
- Kwalitee
Bus factor: 12- 85.17% Coverage
- License: perl_5
- Perl: v5.8.3
- Activity
24 month- Tools
- Download (374.97KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- CGI::Simple::Cookie
- CGI::Struct
- Carp
- Class::C3::Adopt::NEXT
- Class::Load
- Data::Dump
- Data::OptList
- Devel::InnerPackage
- Encode
- HTML::Entities
- HTML::HeadParser
- HTTP::Body
- HTTP::Headers
- HTTP::Request
- HTTP::Response
- Hash::MultiValue
- JSON::MaybeXS
- LWP
- List::Util
- MRO::Compat
- Module::Pluggable
- Moose
- MooseX::Emulate::Class::Accessor::Fast
- MooseX::Getopt
- MooseX::MethodAttributes::Role::AttrContainer::Inheritable
- Path::Class
- PerlIO::utf8_strict
- Plack
- Plack::Middleware::Conditional
- Plack::Middleware::ContentLength
- Plack::Middleware::FixMissingBodyInRedirect
- Plack::Middleware::HTTPExceptions
- Plack::Middleware::Head
- Plack::Middleware::IIS6ScriptNameFix
- Plack::Middleware::IIS7KeepAliveFix
- Plack::Middleware::LighttpdScriptNameFix
- Plack::Middleware::MethodOverride
- Plack::Middleware::RemoveRedundantBody
- Plack::Middleware::ReverseProxy
- Plack::Request::Upload
- Plack::Test::ExternalServer
- Safe::Isa
- Scalar::Util
- Socket
- Stream::Buffered
- String::RewritePrefix
- Sub::Exporter
- Task::Weaken
- Text::Balanced
- Text::SimpleTable
- Time::HiRes
- Tree::Simple
- Tree::Simple::Visitor::FindByUID
- Try::Tiny
- URI
- URI::ws
- namespace::clean
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Catalyst::Response::Writer - Proxy over the PSGI Writer
SYNOPSIS
sub myaction : Path { my ($self, $c) = @_; my $w = $c->response->writer_fh; $w->write("hello world"); $w->close; }
DESCRIPTION
This wraps the PSGI writer (see PSGI.pod\Delayed-Response-and-Streaming-Body) for more. We wrap this object so we can provide some additional methods that make sense from inside Catalyst
METHODS
This class does the following methods
write
close
These delegate to the underlying PSGI writer object
write_encoded
If the application defines a response encoding (default is UTF8) and the content type is a type that needs to be encoded (text types like HTML or XML and Javascript) we first encode the line you want to write. This is probably the thing you want to always do. If you use the \write method directly you will need to handle your own encoding.
AUTHORS
Catalyst Contributors, see Catalyst.pm
COPYRIGHT
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Catalyst::Runtime, copy and paste the appropriate command in to your terminal.
cpanm Catalyst::Runtime
perl -MCPAN -e shell install Catalyst::Runtime
For more information on module installation, please visit the detailed CPAN module installation guide.