@@ -25,10 +25,6 @@ is created.
25
25
26
26
=cut
27
27
28
- #
29
- #
30
- #
31
-
32
28
=head2 stream
33
29
34
30
=cut
@@ -39,10 +35,6 @@ sub stream {
39
35
$self -> streaming(1);
40
36
}
41
37
42
- #
43
- #
44
- #
45
-
46
38
=head2 stream_write
47
39
48
40
=cut
@@ -56,10 +48,6 @@ sub stream_write {
56
48
$self -> writer-> write (@_ );
57
49
}
58
50
59
- #
60
- #
61
- #
62
-
63
51
=head2 sendHeader ( )
64
52
65
53
Generates and sends HTTP headers for a response.
@@ -127,10 +115,6 @@ sub _sendMinimalHeader {
127
115
return undef ;
128
116
}
129
117
130
- #
131
- #
132
- #
133
-
134
118
=head2 setCookie ( name, value [ , timeToLive, domain ] )
135
119
136
120
Sends a cookie to the browser.
@@ -170,10 +154,6 @@ sub setCookie {
170
154
};
171
155
}
172
156
173
- #
174
- #
175
- #
176
-
177
157
=head2 setRedirect ( url, [ type ] )
178
158
179
159
Sets the necessary information in the HTTP header to redirect to another URL.
@@ -201,10 +181,6 @@ sub setRedirect {
201
181
$self -> session-> style-> setMeta({" http-equiv" => " refresh" ,content => " 0; URL=" .$url });
202
182
}
203
183
204
- #
205
- #
206
- #
207
-
208
184
=head2 getLastModified ( )
209
185
210
186
Returns the stored epoch date when the page as last modified.
@@ -216,10 +192,6 @@ sub getLastModified {
216
192
return $self -> {_http }{lastModified };
217
193
}
218
194
219
- #
220
- #
221
- #
222
-
223
195
=head2 setLastModified ( epoch )
224
196
225
197
=head3 epoch
@@ -234,10 +206,6 @@ sub setLastModified {
234
206
$self -> {_http }{lastModified } = $epoch ;
235
207
}
236
208
237
- #
238
- #
239
- #
240
-
241
209
=head2 getNoHeader ( )
242
210
243
211
Returns whether or not a HTTP header will be printed.
@@ -249,10 +217,6 @@ sub getNoHeader {
249
217
return $self -> {_http }{noHeader };
250
218
}
251
219
252
- #
253
- #
254
- #
255
-
256
220
=head2 setNoHeader ( boolean )
257
221
258
222
Disables the printing of a HTTP header. Useful in situations when content is not
@@ -269,10 +233,6 @@ sub setNoHeader {
269
233
$self -> {_http }{noHeader } = shift ;
270
234
}
271
235
272
- #
273
- #
274
- #
275
-
276
236
=head2 isRedirect ( )
277
237
278
238
Returns a boolean value indicating whether the current page will redirect to some other location.
@@ -285,10 +245,6 @@ sub isRedirect {
285
245
return $status == 302 || $status == 301;
286
246
}
287
247
288
- #
289
- #
290
- #
291
-
292
248
=head2 getStreamedFile ( ) {
293
249
294
250
Returns the location of a file to be streamed thru mod_perl, if one has been set.
@@ -300,14 +256,11 @@ sub getStreamedFile {
300
256
return $self -> {_http }{streamlocation } || undef ;
301
257
}
302
258
303
- #
304
- #
305
- #
306
-
307
259
=head2 setStreamedFile ( ) {
308
260
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
311
264
some middleware or reverse-proxy in front of L<WebGUI> to catch the X-Sendfile
312
265
headers and replace that with the file to be sent.
313
266
@@ -340,10 +293,6 @@ sub setStreamedFile {
340
293
341
294
}
342
295
343
- #
344
- #
345
- #
346
-
347
296
=head2 sendFile ( ) {
348
297
349
298
Either redirect (C<setRedirect() > ) or trigger a stream (C<setStreamedFile() > ) depending on how L<WebGUI> is configured.
@@ -367,10 +316,6 @@ sub sendFile {
367
316
1;
368
317
}
369
318
370
- #
371
- #
372
- #
373
-
374
319
=head2 setCacheControl ( timeout )
375
320
376
321
Sets the cache control headers.
@@ -387,10 +332,6 @@ sub setCacheControl {
387
332
$self -> {_http }{cacheControl } = $timeout ;
388
333
}
389
334
390
- #
391
- #
392
- #
393
-
394
335
=head2 getCacheControl ( )
395
336
396
337
Returns the cache control setting from this object.
@@ -408,10 +349,6 @@ Subclasses Plack::Response C<finalize()>, doing L<WebGUI> specific finalization
408
349
409
350
=cut
410
351
411
- #
412
- #
413
- #
414
-
415
352
sub finalize {
416
353
417
354
my $self = shift ;
@@ -436,5 +373,4 @@ sub finalize {
436
373
437
374
}
438
375
439
-
440
376
1;
0 commit comments