New (HttpRequest constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 1: Line 1:
<span class="pageSubtitle"><section begin=dpl_desc/><section end=dpl_desc/></span>
{{Template:HTTPRequest:New subtitle}}
[[Category:HTTPRequest methods|New constructor]]


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)
Line 7: Line 6:
descriptions in this chapter.
descriptions in this chapter.
==Syntax==
==Syntax==
<p class="syntax">%httpreq = New
{{Template:HTTPRequest:New syntax}}
</p>
 
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
Line 26: Line 23:
  %httpreq = %httpreq:new
  %httpreq = %httpreq:new
</p>
</p>
==See also==
{{Template:HTTPRequest:New footer}}

Revision as of 18:25, 15 June 2011

Template:HTTPRequest:New subtitle

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

Template:HTTPRequest:New syntax

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

Template:HTTPRequest:New footer