Class wwScriptingHttpResponse
The wwScriptingHTTPResponse class is used to create an HTTP response. When this class is specified in the wwScripting::cScriptResponseClass property this class is used and wwScripting uses this class to add an HTTP header to the script output.
wwScriptingResponse
wwScriptingHttpResponse
Class Members
| Member | Description | |
|---|---|---|
| AddCacheHeader | Adds a maximum Caching HTTP header to the Response
o.AddCacheHeader(lnExpirationSeconds)
|
|
| AddCookie | Adds a Cookie to the HTTP header
o.AddCookie(tcCookie,tcValue,tcPath,tcExpire)
|
|
| AddForceReload | Sets maximum cache expiration headers for the HTTP response.
o.AddForceReload()
|
|
| AppendHeader | Adds an HTTP Header to the response. Examples: <% Response.AppendHeader("Expires","-1") Response.AppendHeader("Repeat","5;url=default.wcs") %>
o.AppendHeader(lcKey,lcValue)
|
|
| BasicAuthentication | wwScriptingHttpResponse :: BasicAuthentication Function: Assume: Pass: Return:
o.BasicAuthentication(tcRealm, tcErrorText)
|
|
| Redirect | wwPageResponse :: Redirect Function: Assume: Pass: Return:
o.Redirect(lcUrl)
|
|
| RenderHttpHeader | Returns the collective HTTP header including the final CRLF.
o.RenderHttpHeader()
|
|
| Expires | An expiration header tag in minutes. Typically -1 is used to signifiy that this request should not be cached. | |
| HttpVersion | The HTTP Version for the header. Default: 1.1 | |
| Status | A status for the HTTP header. Default: 200 OK Other examples: 401 Not Authorized 404 File not found 302 Moved | |
Assembly: wwscripting.prg
