Skip to content

Commit 61e1705

Browse files
committedJan 1, 2012
Remove empty comments and fix POD.
1 parent 6a6f839 commit 61e1705

File tree

1 file changed

+3
-67
lines changed

1 file changed

+3
-67
lines changed
 

‎lib/WebGUI/Session/Response.pm

+3-67
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ is created.
2525
2626
=cut
2727

28-
#
29-
#
30-
#
31-
3228
=head2 stream
3329
3430
=cut
@@ -39,10 +35,6 @@ sub stream {
3935
$self->streaming(1);
4036
}
4137

42-
#
43-
#
44-
#
45-
4638
=head2 stream_write
4739
4840
=cut
@@ -56,10 +48,6 @@ sub stream_write {
5648
$self->writer->write(@_);
5749
}
5850

59-
#
60-
#
61-
#
62-
6351
=head2 sendHeader ( )
6452
6553
Generates and sends HTTP headers for a response.
@@ -127,10 +115,6 @@ sub _sendMinimalHeader {
127115
return undef;
128116
}
129117

130-
#
131-
#
132-
#
133-
134118
=head2 setCookie ( name, value [ , timeToLive, domain ] )
135119
136120
Sends a cookie to the browser.
@@ -170,10 +154,6 @@ sub setCookie {
170154
};
171155
}
172156

173-
#
174-
#
175-
#
176-
177157
=head2 setRedirect ( url, [ type ] )
178158
179159
Sets the necessary information in the HTTP header to redirect to another URL.
@@ -201,10 +181,6 @@ sub setRedirect {
201181
$self->session->style->setMeta({"http-equiv"=>"refresh",content=>"0; URL=".$url});
202182
}
203183

204-
#
205-
#
206-
#
207-
208184
=head2 getLastModified ( )
209185
210186
Returns the stored epoch date when the page as last modified.
@@ -216,10 +192,6 @@ sub getLastModified {
216192
return $self->{_http}{lastModified};
217193
}
218194

219-
#
220-
#
221-
#
222-
223195
=head2 setLastModified ( epoch )
224196
225197
=head3 epoch
@@ -234,10 +206,6 @@ sub setLastModified {
234206
$self->{_http}{lastModified} = $epoch;
235207
}
236208

237-
#
238-
#
239-
#
240-
241209
=head2 getNoHeader ( )
242210
243211
Returns whether or not a HTTP header will be printed.
@@ -249,10 +217,6 @@ sub getNoHeader {
249217
return $self->{_http}{noHeader};
250218
}
251219

252-
#
253-
#
254-
#
255-
256220
=head2 setNoHeader ( boolean )
257221
258222
Disables the printing of a HTTP header. Useful in situations when content is not
@@ -269,10 +233,6 @@ sub setNoHeader {
269233
$self->{_http}{noHeader} = shift;
270234
}
271235

272-
#
273-
#
274-
#
275-
276236
=head2 isRedirect ( )
277237
278238
Returns a boolean value indicating whether the current page will redirect to some other location.
@@ -285,10 +245,6 @@ sub isRedirect {
285245
return $status == 302 || $status == 301;
286246
}
287247

288-
#
289-
#
290-
#
291-
292248
=head2 getStreamedFile ( ) {
293249
294250
Returns the location of a file to be streamed thru mod_perl, if one has been set.
@@ -300,14 +256,11 @@ sub getStreamedFile {
300256
return $self->{_http}{streamlocation} || undef;
301257
}
302258

303-
#
304-
#
305-
#
306-
307259
=head2 setStreamedFile ( ) {
308260
309-
Set a file to be streamed through mod_perl.
310-
Rrequires that C<enableStreamingUploads> be set in the config file and then
261+
Set a file to be streamed.
262+
263+
Requires that C<enableStreamingUploads> be set in the config file and then
311264
some middleware or reverse-proxy in front of L<WebGUI> to catch the X-Sendfile
312265
headers and replace that with the file to be sent.
313266
@@ -340,10 +293,6 @@ sub setStreamedFile {
340293

341294
}
342295

343-
#
344-
#
345-
#
346-
347296
=head2 sendFile ( ) {
348297
349298
Either redirect (C<setRedirect()>) or trigger a stream (C<setStreamedFile()>) depending on how L<WebGUI> is configured.
@@ -367,10 +316,6 @@ sub sendFile {
367316
1;
368317
}
369318

370-
#
371-
#
372-
#
373-
374319
=head2 setCacheControl ( timeout )
375320
376321
Sets the cache control headers.
@@ -387,10 +332,6 @@ sub setCacheControl {
387332
$self->{_http}{cacheControl} = $timeout;
388333
}
389334

390-
#
391-
#
392-
#
393-
394335
=head2 getCacheControl ( )
395336
396337
Returns the cache control setting from this object.
@@ -408,10 +349,6 @@ Subclasses Plack::Response C<finalize()>, doing L<WebGUI> specific finalization
408349
409350
=cut
410351

411-
#
412-
#
413-
#
414-
415352
sub finalize {
416353

417354
my $self = shift;
@@ -436,5 +373,4 @@ sub finalize {
436373

437374
}
438375

439-
440376
1;

0 commit comments

Comments
 (0)
Please sign in to comment.