HttpConnectionSendResponse
Full Description
swirl
Syntax
  define function HttpConnectionSendResponse
                 value   TCPConnection Connection
                 send   modifiable stream Response
      timeout     value       counter        Timeout optional initial {10000}


Purpose

This function constructs an HTTP message from an HTTP response object and returns it to the client from the server over the specified connection.

Input arguments:

  • "Connection" -- the open TCP connection between the server and client.
  • "Response" -- the HTTP response to send to the client.
  • "Timeout" -- the maximum number of milliseconds to wait for a communication operation before failing. Connection is set to an error state if the TCP communication times out.

Example:

  ; HttpConnectionSendResponse

  local HttpResponse my-Response

  set my-Response^"entity-body" to file "default.htm"

  HttpConnectionSendResponse client-Connection send my-response timeout 45000

Copyright © OmniMark Technologies Corporation, 1988-1998.