Navigation | Overlay |
---|---|
t Navigate files | h Toggle hits |
y Change url to tip of branch | m Toggle misses |
b / v Jump to prev/next hit line | p Toggle partial |
z / x Jump to prev/next missed or partial line | 1..9 Toggle flags |
shift + o Open current page in GitHub | a Toggle all on |
/ or ? Show keyboard shortcuts dialog | c Toggle context lines or commits |
1 |
###########################################################################/**
|
|
2 |
# @RdocClass RspResponse
|
|
3 |
#
|
|
4 |
# @title "The RspResponse class"
|
|
5 |
#
|
|
6 |
# \description{
|
|
7 |
# @classhierarchy
|
|
8 |
#
|
|
9 |
# An abstract class that provides basic methods to write and flush output to
|
|
10 |
# the generated document.
|
|
11 |
# }
|
|
12 |
#
|
|
13 |
# @synopsis
|
|
14 |
#
|
|
15 |
# \arguments{
|
|
16 |
# \item{...}{Not used.}
|
|
17 |
# }
|
|
18 |
#
|
|
19 |
# \section{Fields and Methods}{
|
|
20 |
# @allmethods
|
|
21 |
# }
|
|
22 |
#
|
|
23 |
# @author
|
|
24 |
# @keyword internal
|
|
25 |
#*/###########################################################################
|
|
26 |
setConstructorS3("RspResponse", function(...) { |
|
27 | 1 |
extend(Object(), "RspResponse", |
28 |
...
|
|
29 |
)
|
|
30 |
})
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
#########################################################################/**
|
|
36 |
# @RdocMethod writeResponse
|
|
37 |
# @alias writeResponse.FileRspResponse
|
|
38 |
# @alias writeResponse.HttpDaemonRspResponse
|
|
39 |
# @aliasmethod write
|
|
40 |
#
|
|
41 |
# @title "Writes an RSP response to the predefined output"
|
|
42 |
#
|
|
43 |
# \description{
|
|
44 |
# @get "title".
|
|
45 |
# }
|
|
46 |
#
|
|
47 |
# @synopsis
|
|
48 |
#
|
|
49 |
# \arguments{
|
|
50 |
# \item{...}{Objects to be pasted together and outputted.}
|
|
51 |
# \item{collapse}{A @character string to be used to collapse the objects.}
|
|
52 |
# \item{sep}{A @character string to separate the objects.}
|
|
53 |
# }
|
|
54 |
#
|
|
55 |
# \value{
|
|
56 |
# Returns nothing.
|
|
57 |
# }
|
|
58 |
#
|
|
59 |
# @author
|
|
60 |
#
|
|
61 |
# \seealso{
|
|
62 |
# @seeclass
|
|
63 |
# }
|
|
64 |
#
|
|
65 |
# @keyword IO
|
|
66 |
#*/#########################################################################
|
|
67 |
setMethodS3("writeResponse", "RspResponse", abstract=TRUE) |
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
#########################################################################/**
|
|
73 |
# @RdocMethod flush
|
|
74 |
# @alias flush.FileRspResponse
|
|
75 |
# @alias flush.HttpDaemonRspResponse
|
|
76 |
#
|
|
77 |
# @title "Flushes the response buffer"
|
|
78 |
#
|
|
79 |
# \description{
|
|
80 |
# @get "title".
|
|
81 |
# }
|
|
82 |
#
|
|
83 |
# @synopsis
|
|
84 |
#
|
|
85 |
# \arguments{
|
|
86 |
# \item{...}{Not used.}
|
|
87 |
# }
|
|
88 |
#
|
|
89 |
# \value{
|
|
90 |
# Returns nothing.
|
|
91 |
# }
|
|
92 |
#
|
|
93 |
# @author
|
|
94 |
#
|
|
95 |
# \seealso{
|
|
96 |
# @seeclass
|
|
97 |
# }
|
|
98 |
#
|
|
99 |
# @keyword IO
|
|
100 |
#*/#########################################################################
|
|
101 |
setMethodS3("flush", "RspResponse", appendVarArgs=FALSE, abstract=TRUE) |
Read our documentation on viewing source code .