~ubuntu-branches/ubuntu/edgy/libapache2-mod-perl2/edgy-updates

« back to all changes in this revision

Viewing changes to docs/api/Apache/Access.pod

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2004-08-19 06:23:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040819062348-jxl4koqbtvgm8v2t
Tags: 1.99.14-4
Remove the LFS CFLAGS, and build-dep against apache2-*-dev (>= 2.0.50-10)
as we're backing out of the apache2/apr ABI transition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
=head1 NAME
2
2
 
3
 
Apache::Access -- A Perl API for Apache request object
4
 
 
5
 
=head1 SYNOPSIS
6
 
 
7
 
  use Apache::Access;
8
 
  sub handler{
9
 
      my $r = shift;
10
 
      ...
11
 
      my $auth_type = $r->auth_type;
12
 
      ...
13
 
  }
14
 
 
15
 
=head1 DESCRIPTION
 
3
Apache::Access - A Perl API for Apache request object
 
4
 
 
5
 
 
6
 
 
7
 
 
8
=head1 Synopsis
 
9
 
 
10
META: needs to be completed
 
11
 
 
12
  use Apache::Access ();
 
13
 
 
14
 
 
15
 
 
16
=head1 Description
16
17
 
17
18
C<Apache::Access> provides the Perl API for Apache request object.
18
19
 
 
20
 
 
21
 
 
22
 
19
23
=head1 API
20
24
 
21
 
Function arguments (if any) and return values are shown in the
22
 
function's synopsis.
23
 
 
24
 
=over
25
 
 
26
 
=item * auth_type()
27
 
 
28
 
C<$r-E<gt>auth_type> gets or sets the value of the I<AuthType>
29
 
configuration directive for the current request.
30
 
 
31
 
  my $auth_type = $r->auth_type;
32
 
 
33
 
or
34
 
 
35
 
  $r->auth_type('Basic');
36
 
 
37
 
=item *
38
 
 
39
 
=back
40
 
 
 
25
C<Apache::Access> provides the following functions and/or methods:
 
26
 
 
27
 
 
28
 
 
29
 
 
30
=head2 C<allow_options>
 
31
 
 
32
META: Autogenerated - needs to be reviewed/completed
 
33
 
 
34
Retrieve the value of Options for this request
 
35
 
 
36
  $ret = $r->allow_options();
 
37
 
 
38
=over 4
 
39
 
 
40
=item obj: C<$r> (C<L<Apache::RequestRec|docs::2.0::api::Apache::RequestRec>>)
 
41
 
 
42
The current request
 
43
 
 
44
=item ret: C<$ret> (integer)
 
45
 
 
46
the Options bitmask
 
47
 
 
48
=back
 
49
 
 
50
 
 
51
 
 
52
 
 
53
 
 
54
=head2 C<allow_overrides>
 
55
 
 
56
META: Autogenerated - needs to be reviewed/completed
 
57
 
 
58
Retrieve the value of the AllowOverride for this request
 
59
 
 
60
  $ret = $r->allow_overrides();
 
61
 
 
62
=over 4
 
63
 
 
64
=item obj: C<$r> (C<L<Apache::RequestRec|docs::2.0::api::Apache::RequestRec>>)
 
65
 
 
66
The current request
 
67
 
 
68
=item ret: C<$ret> (integer)
 
69
 
 
70
the overrides bitmask
 
71
 
 
72
=back
 
73
 
 
74
 
 
75
 
 
76
 
 
77
 
 
78
=head2 C<get_remote_logname>
 
79
 
 
80
META: Autogenerated - needs to be reviewed/completed
 
81
 
 
82
Retrieve the login name of the remote user.  Undef if it could not be
 
83
determined
 
84
 
 
85
  $ret = $r->get_remote_logname();
 
86
 
 
87
=over 4
 
88
 
 
89
=item obj: C<$r> (C<L<Apache::RequestRec|docs::2.0::api::Apache::RequestRec>>)
 
90
 
 
91
The current request
 
92
 
 
93
=item ret: C<$ret> (string)
 
94
 
 
95
The user logged in to the client machine
 
96
 
 
97
=back
 
98
 
 
99
 
 
100
 
 
101
 
 
102
 
 
103
=head2 C<note_auth_failure>
 
104
 
 
105
META: Autogenerated - needs to be reviewed/completed
 
106
 
 
107
Setup the output headers so that the client knows how to authenticate
 
108
itself the next time, if an authentication request failed.  This function
 
109
works for both basic and digest authentication
 
110
 
 
111
  $r->note_auth_failure();
 
112
 
 
113
=over 4
 
114
 
 
115
=item obj: C<$r> (C<L<Apache::RequestRec|docs::2.0::api::Apache::RequestRec>>)
 
116
 
 
117
The current request
 
118
 
 
119
=item ret: no return value
 
120
 
 
121
=back
 
122
 
 
123
 
 
124
 
 
125
 
 
126
 
 
127
=head2 C<note_basic_auth_failure>
 
128
 
 
129
META: Autogenerated - needs to be reviewed/completed
 
130
 
 
131
Setup the output headers so that the client knows how to authenticate
 
132
itself the next time, if an authentication request failed.  This function
 
133
works only for basic authentication
 
134
 
 
135
  $r->note_basic_auth_failure();
 
136
 
 
137
=over 4
 
138
 
 
139
=item obj: C<$r> (C<L<Apache::RequestRec|docs::2.0::api::Apache::RequestRec>>)
 
140
 
 
141
The current request
 
142
 
 
143
=item ret: no return value
 
144
 
 
145
=back
 
146
 
 
147
 
 
148
 
 
149
 
 
150
 
 
151
=head2 C<note_digest_auth_failure>
 
152
 
 
153
META: Autogenerated - needs to be reviewed/completed
 
154
 
 
155
Setup the output headers so that the client knows how to authenticate
 
156
itself the next time, if an authentication request failed.  This function
 
157
works only for digest authentication
 
158
 
 
159
  $r->note_digest_auth_failure();
 
160
 
 
161
=over 4
 
162
 
 
163
=item obj: C<$r> (C<L<Apache::RequestRec|docs::2.0::api::Apache::RequestRec>>)
 
164
 
 
165
The current request
 
166
 
 
167
=item ret: no return value
 
168
 
 
169
=back
 
170
 
 
171
 
 
172
 
 
173
 
 
174
 
 
175
=head2 C<satisfies>
 
176
 
 
177
META: Autogenerated - needs to be reviewed/completed
 
178
 
 
179
How the requires lines must be met.
 
180
 
 
181
  $ret = $r->satisfies();
 
182
 
 
183
=over 4
 
184
 
 
185
=item obj: C<$r> (C<L<Apache::RequestRec|docs::2.0::api::Apache::RequestRec>>)
 
186
 
 
187
The current request
 
188
 
 
189
=item ret: C<$ret> (integer)
 
190
 
 
191
How the requirements must be met.  One of:
 
192
 
 
193
  Apache::SATISFY_ANY    -- any of the requirements must be met.
 
194
  Apache::SATISFY_ALL    -- all of the requirements must be met.
 
195
  Apache::SATISFY_NOSPEC -- There are no applicable satisfy lines
 
196
 
 
197
=back
 
198
 
 
199
 
 
200
 
 
201
 
 
202
 
 
203
=head2 C<some_auth_required>
 
204
 
 
205
META: Autogenerated - needs to be reviewed/completed
 
206
 
 
207
Can be used within any handler to determine if any authentication
 
208
is required for the current request
 
209
 
 
210
  $ret = $r->some_auth_required();
 
211
 
 
212
=over 4
 
213
 
 
214
=item obj: C<$r> (C<L<Apache::RequestRec|docs::2.0::api::Apache::RequestRec>>)
 
215
 
 
216
The current request
 
217
 
 
218
=item ret: C<$ret> (integer)
 
219
 
 
220
1 if authentication is required, 0 otherwise
 
221
 
 
222
=back
 
223
 
 
224
 
 
225
 
 
226
 
 
227
=head1 See Also
 
228
 
 
229
L<mod_perl 2.0 documentation|docs::2.0::index>.
 
230
 
 
231
 
 
232
 
 
233
 
 
234
=head1 Copyright
 
235
 
 
236
mod_perl 2.0 and its core modules are copyrighted under
 
237
The Apache Software License, Version 1.1.
 
238
 
 
239
 
 
240
 
 
241
 
 
242
=head1 Authors
 
243
 
 
244
L<The mod_perl development team and numerous
 
245
contributors|about::contributors::people>.
41
246
 
42
247
=cut
 
248