|
Class: HTTPResponseHeader
Object
|
+--HTTPResponseHeader
|
+--FCGIResponse::ResponseHeader
- Package:
- stx:goodies/webServer
- Category:
- Net-Communication-HTTP-Server
- Version:
- rev:
1.28
date: 2018/10/19 10:35:08
- user: cg
- file: HTTPResponseHeader.st directory: goodies/webServer
- module: stx stc-classLibrary: webServer
collects the fields of an HTTP response header
constants
-
reasonPhraseForStatus: statusCode
-
self reasonPhraseForStatus:401
-
reasonPhrasesDictionary
-
returns a dictionary which maps HTTP-codes to a descriptive message text
usage example(s):
self reasonPhrasesDictionary
|
instance creation
-
httpOKHeaderForResponse: aResponse
-
-
response: aResponse
-
-
responseCode: aCode response: aResponse
-
-
statusCode: aCode response: aResponse
-
accessing
-
additionalHeaderLines
-
return the collection containing additionalHeaderLines.
Lazily initialized here as an empty collection
-
cacheControl
-
-
contentDisposition: aContentDispositionString filename: aFileNameString
-
-
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
-
contentLength: something
-
set the contentLength field
-
contentLocation
-
-
contentLocation: something
-
-
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
-
contentType: something
-
set the contentType field
-
contentType: aContentTypeArg contentLength: contentLengthArg expirationTime: expirationTimestampArg
-
-
expectedAuthRealm: something
-
-
expirationTime
-
-
expirationTime: expirationTimestamp
-
the responses expirationTimestamp; consider to use maxAge:
-
externalHeaderString: aCompleteHeaderString
-
ATTENTION: we really want a cr-lf here
-
httpVersion
-
-
httpVersion: something
-
-
lastModified
-
the last modified time of a page - typically a file
-
lastModified: lastModifiedTimestamp
-
the last modified time of a page - typically a file
-
location
-
-
location: something
-
Used with a 3xx moved response.
-
maxAge: aSecondsIntegerOrTimeDuration
-
how many seconds may this response be cached
-
parseFirstLine
-
parse the first line of a HTML response string
-
response
-
-
response: something
-
-
responseCode
-
-
responseCode: something
-
actions
-
addLineToHeader: aString
-
add a crlf to the string if absent
-
redirectTo: targetUrl
-
setup for a redirect response
queries
-
hasErrorStatusCode
-
answer true, if this is an error response
-
hasFilename
-
-
isBinaryContent
-
sending
-
generateResponseOn: headerStream
-
must add content-length because external header string does not have one added
(com swiki in some cases)
-
generateResponseStatusOn: headerStream
-
ATTENTION: we really want a cr-lf here
CacheControl
|