swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
  Related Syntax     Other Library Functions  
function   HttpResponseOutput    

Library: omhttp - HTTP support
Include: omhttp.xin

Declaration

  define function HttpResponseOutput
       modifiable stream Response


Purpose

This function formats the contents of a response object as a valid HTTP-formatted message and writes the entire text message to the current output. It is generally located in a server program and is used by the HttpConnectionSendResponse function.

Argument:

Example:

  define function ServiceMain
     (  read-only stream requestHeader,
        read-only stream requestBody
     )
  as
     ; local variables
     local HttpResponse this-response

     ; set the message body
     open this-response{'entity-body'} as buffer
     using output as this-response{'entity-body'}
     do
        output '<html><head><title>OmniMark Service</title></head>'
        output '<body><h1>Welcome</h1>'
        output 'This site is still under construction.'
        output '</body></html>'
     done
     close this-response{'entity-body'}

     ; send Response
     HttpResponseOutput this-response

    Related Syntax
   HttpConnectionSendResponse
 
  Other Library Functions
   HttpConnectionSendResponse
   HttpLibraryVersion
   HttpObjectGetCookieAttributes
   HttpObjectGetCookieValues
   HttpObjectGetHeaders
   HttpObjectGetStatusReport
   HttpObjectIsInError
   HttpObjectSetCookieAttribute
   HttpObjectSetCookieValue
   HttpObjectSetHeader
   HttpRequestGetSearchItems
   HttpRequestSend
   HttpRequestSetFromUrl
   HttpRequestSetProxy
   HttpRequestSetSearchItem
   HttpResponseOutput
   HttpServiceAwaitRequest
 
----  

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ OMX ] [ OMX ] [ ERRORS ]

Generated: August 11, 2000 at 3:07:21 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com

Copyright © OmniMark Technologies Corporation, 1988-2000.