New (HttpRequest constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 1: Line 1:
{{Template:HttpRequest:New subtitle}}
{{Template:HttpRequest:New subtitle}}


The <var>HTTPRequest</var> constructor (run automatically when <var>New</var> is issued)
The <var>HttpRequest</var> constructor (run automatically when <var>New</var> is issued)
takes no arguments and sets the request object default values.
takes no arguments and sets the request object default values.
For more information about HTTP request object defaults, see the individual method
For more information about HTTP request object defaults, see the individual method
Line 10: Line 10:
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%httpreq</th>
<tr><th>%httpreq</th>
<td>The declared <var>HTTPRequest</var> object that gets instantiated by New.
<td>The declared <var>HttpRequest</var> object that gets instantiated by New.


</td></tr></table>
</td></tr></table>

Revision as of 20:17, 16 June 2011

Create a new HttpRequest object (HttpRequest class)


The HttpRequest constructor (run automatically when New is issued) takes no arguments and sets the request object default values. For more information about HTTP request object defaults, see the individual method descriptions in this chapter.

Syntax

%httpRequest = [%(HttpRequest):]New

Syntax terms

%httpreq The declared HttpRequest object that gets instantiated by New.

Usage notes

New can be called with no object, with an explicit class name, or with an object variable, even if that object is null:

%httpreq = new %httpreq = %(httprequest):new %httpreq = %httpreq:new

See also