internal package
Foswiki::Response status
- response status
* headers
- hashref to response headers
* body
- response body
* cookies
- hashref to response cookies
ClassMethod
new() → $response ObjectMethod
status( $status ) → $status $status
is a three digit code, optionally followed by a status string
ObjectMethod
charset([$charset]) → $charset ObjectMethod
header(-type → $type, ObjectMethod
headers( { ... } ) → $headersHashRef ObjectMethod
getHeader( [ $name ] ) → $value ObjectMethod
setDefaultHeaders( { $name → $value, ... } ) ObjectMethod
printHeaders() ObjectMethod
deleteHeader($h1, $h2, ...) ObjectMethod
pushHeader( $name, $value ) ObjectMethod
cookies( [ \@cookies ] ) → @cookies ObjectMethod
body( [ $body ] ) → $body $body
must be a byte string.
Replaces the entire body; if you want to generate the body incrementally,
use print
instead.
Note that the $body
returned is a byte string (utf8 encoded if print
was used to create it)
ObjectMethod
redirect( $uri, $status, $cookies | $uri
must be passed. Others are optional.
CGI Compatibility Note: It doesn't support -target or -nph
ObjectMethod
print(...) ObjectMethod
outputHasStarted([$boolean]) ![]() |
© 2025 D.Soost & D.Marxsen - All rights reserved © Of all articles by authors Trademarks are the property of their respective owners © Logo by Wikipedia, modified by Administrator | Impressum Disclaimer Datenschutzerklärung |