|
Class: HTTPConnection
Object
|
+--HTTPConnection
|
+--FCGIConnection
- Package:
- stx:goodies/webServer
- Category:
- Net-Communication-HTTP-Server
- Version:
- rev:
1.40
date: 2019/07/09 18:51:38
- user: cg
- file: HTTPConnection.st directory: goodies/webServer
- module: stx stc-classLibrary: webServer
I represent a still active http connection and will serve requests from this
until closed.
accessing
-
defaultConnectionProcessStackSize
-
-
defaultConnectionProcessStackSize: something
-
HTTPConnection defaultConnectionProcessStackSize:2*1024*1024
defaults
-
idleTimeoutToCloseConnection
-
the number of idle seconds, after which a kept connection is closed
-
maxRequestHeaderSize
-
return the maximum size of a requests header
-
requestTimeOut
-
return the maximum time in secs until a request times out
-
requestTransmitTimeOut
-
return the maximum time in secs until a request must be transmitted
accessing
-
httpServer
-
-
httpServer: something
-
-
keepConnection: something
-
-
lastRequestTime
-
-
lastRequestTime: something
-
-
serveProcess
-
-
socket
-
-
socket: aSocket
-
-
startReadRequestTime
-
-
verbose
-
return the verbose messages flag from the server
-
verboseData
-
return the verbose-data flag from the server
-
verboseErrors
-
return the verbose errors flag from the server
closing
-
close
-
force an immediate close and terminate the process
-
closeSocket
-
close down the connection
-
scheduleForClose
-
remember to close the connection after processing
logging
-
debugError: msg
-
debug-report some error condition to the Transcript
-
debugInfo: msg
-
debug-report some trace information to the Transcript
-
flushLog
-
flush our buffered log
-
logAccess: request
-
MessageTally spyDetailedOn:[
-
logError: aString
-
Add to the log.
-
logReply: aString
-
Add to the log.
-
logStream
-
-
logStream: aStream
-
set the log stream
-
logString: aString
-
Add to the log.
-
logWarning: aString
-
Add to the log.
printing
-
printOn: aStream
-
aStream nextPutAll:' n='.
usage example(s):
requestCount printOn:aStream.
|
queries
-
overallNumberOfRequests
-
the number of served requests in this connection
-
requestTimeToPerform
-
what a stupid name
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
timeInRequest
-
the time we have spent in the current request
Or the last one, if finished.
In milliseconds or nil
-
timeToPerformRequest
-
the time it took to perform the previous request.
In milliseconds or nil
serving-processing
-
getContentLengthFrom: requestString
-
-
process
-
serve the connection (as a new process)
-
readQueryDataForPostMessageFrom: header
-
some browsers apparently don't send content-length when user hits back button
-
readUpToEndOrSize: nMax
-
got timeout
-
serve
-
main loop on a connection:
- read request
- generate reply
when leaving the loop, the connection will be closed by our sender
-
setKeepConnectionForRequest: aRequest
-
handle keepConnection as specified in aRequest.
Notice: this is invoked BEFORE the request is actually handled - if a service
detects a bad guy or intruder, it may still choose to invoke keepConnection:false
-
waitForAndFetchRequest
-
Read the request and return an HTTPRequest instance,
or nil on any error.
startup & release
-
initializeFor: aHTTPServer socket: aSocket
-
initialize a connection served by aHTTPServer on aSocket
test support
-
quickSendTestResponse
-
used only for tests
testing
-
isKeepAlive
-
-
isOpen
-
-
shouldTimeout
-
answer true, if the currently pending request should timeout
|