eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTTPResponseHeader':

Home

everywhere
www.exept.de
for:
[back]

Class: HTTPResponseHeader


Inheritance:

   Object
   |
   +--HTTPResponseHeader
      |
      +--FCGIResponse::ResponseHeader

Package:
stx:goodies/webServer
Category:
Net-Communication-HTTP-Server
Version:
rev: 1.19 date: 2009/09/09 14:56:35
user: sr
file: HTTPResponseHeader.st directory: goodies/webServer
module: stx stc-classLibrary: webServer

Description:


collects the fields of an HTTP response header


Class protocol:

constants
o  reasonPhrasesDictionary
returns a dictionary which maps HTTP-codes to a descriptive message text

instance creation
o  httpOKHeaderForResponse: aResponse

o  response: aResponse

o  responseCode: aCode response: aResponse

o  statusCode: aCode response: aResponse

** This is an obsolete interface - do not use it (it may vanish in future versions) **


Instance protocol:

accessing
o  additionalHeaderLines

o  cacheControl

o  contentDisposition: aContentDispositionString filename: aFileNameString

o  contentLength
contentLength from header as a number, if the header is set by a service as a string
the contentLength field value will be parsed from the header

o  contentLength: something

o  contentLocation

o  contentLocation: something

o  contentType
answer the request's content-type.
Since we currently use 1-byte strings, our default character set is ISO8859-1.
This may change to UTF-8 some day

o  contentType: something

o  contentType: aContentTypeArg contentLength: contentLengthArg expirationTime: expirationTimestampArg

o  expectedAuthRealm: something

o  expirationTime

o  expirationTime: expirationTimestamp
the responses expirationTimestamp; consider to use maxAge:

o  externalHeaderString: aCompleteHeaderString

o  httpVersion

o  httpVersion: something

o  location

o  location: something
Used with a 3xx moved response.

o  parseFirstLine
parse the first line of a HTML response string

o  response

o  response: something

o  responseCode

o  responseCode: something

actions
o  addLineToHeader: aString
add a crlf to the string if absent

o  redirectTo: targetUrl

queries
o  hasErrorStatusCode
answer true, if this is an error response

o  isBinaryContent

sending
o  generateResponseOn: headerStream

o  generateResponseStatusOn: headerStream


Private classes:

    CacheControl


ST/X 6.1.1; WebServer 1.620 at exept:8081; Wed, 23 May 2012 10:09:30 GMT