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.

Custom
  wwScriptingResponse
    wwScriptingHttpResponse

Class Members

MemberDescription

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.

o.AppendHeader(lcKey,lcValue)

BasicAuthentication


wwScriptingHttpResponse :: BasicAuthentication

o.BasicAuthentication(tcRealm, tcErrorText)

Redirect


wwPageResponse :: Redirect

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.

Requirements

Assembly: wwscripting.prg

© West Wind Technologies, 1996-2024 • Updated: 07/14/15
Comment or report problem with topic