|
Class: HttpResponse (in Comanche)
Object
|
+--Comanche::HttpResponse
|
+--Comanche::HttpPartialResponse
- Package:
- stx:goodies/webServer/comanche/swiki
- Category:
- Comanche-Kom-Protocol-HTTP
- Version:
- rev:
1.12
date: 2003/09/10 15:30:41
- user: cg
- file: HttpResponse.st directory: goodies/webServer/comanche/swiki
- module: stx stc-classLibrary: swiki
kom/4.12 (Comanche/4.12)
bolot 2/20/2002 13:55
- cookies support
- defaultChunkSize delegates to Kom5Preferences
HttpResponse (bolot 4/2/2001 18:52)
Comment from kom46:
I am a response to an HttpRequest. I can formulate an HTTP response and send it out over a socket. An HttpAdapter will accept an HttpRequest, dispatch a method call to an HttpPlug (which will result in a stream or an error), and then formulat an instance of me to deliver the response to the client.
initialization
-
initialize
-
HttpResponse initialize
-
initializeStatusCodes
-
HttpResponse initializeStatusCodes
instance creation
-
fromFileStream: aStream
-
fieldAt: 'Cache-Control' put: 'max-age=86400';
-
fromMIMEDocument: aMIMEDoc
-
fieldAt: 'Expires' put: (String streamContents: [:s |
(TimeStamp fromSeconds: (Time primSecondsClock + 86400)) printOnHTTP: s]);
-
fromRedirect: redirect
-
-
fromStream: aStream
-
fieldAt: 'Expires' put: 'Thu, 15 Apr 2010 20:00:00 GMT';
-
fromString: aString
-
fieldAt: 'Cache-Control' put: 'max-age=86400';
-
fromUrl: aUrl
-
-
status: aSymbol description: aString
-
-
status: aSymbol mimeDescription: aMIMEDocument
-
-
statusCodes
-
accessing
-
contentType
-
-
contentType: aMimeType
-
-
contents
-
-
contents: aStream
-
-
fieldAt: aString
-
-
fieldAt: aString ifAbsent: absBlock
-
-
fieldAt: aString ifAbsentPut: absBlock
-
-
fieldAt: aString put: aValue
-
-
fields
-
-
httpVersion
-
-
request
-
-
request: anHttpRequest
-
-
status
-
-
status: aSymbol
-
-
statusCode
-
-
statusCodeAndReason
-
accessing-cookies
-
cookies
-
-
setCookieName: nameString value: valueString expiresDate: expiresDate expiresTime: expiresTime path: pathString domain: domainString secure: secureBoolean
-
set a cookie in the Response
-
setCookieName: nameString value: valueString path: pathString
-
set a cookie in the Response
authentication
-
hashPassword: aPassword
-
-
secretWord
-
-
setUsername: aUsername
-
save the username in a cookie
-
setUsername: aUsername password: aPassword
-
save the username/password in cookies
comanche processing
-
asHttpPartialResponseBlock: aBlock
-
-
asHttpResponseTo: aRequest
-
defaults
-
defaultChunkSize
-
-
defaultContentType
-
initialize-release
-
destroy
-
responding
-
pvtWriteContentLengthOn: aStream
-
-
pvtWriteContentTypeOn: aStream
-
-
pvtWriteContentsOn: aStream
-
Processor yield.
-
pvtWriteCookiesOn: aStream
-
-
pvtWriteFieldsOn: aStream
-
-
pvtWriteServerOn: aStream
-
-
pvtWriteStatusOn: aStream
-
-
writeOn: aStream
-
Header
|