# HG changeset patch # User paulb # Date 1129742389 0 # Node ID e325db7e56b7a380f5adbd65b2fb5621860c70d4 # Parent 991d85ac1f4e01dfca27f59e74618541736aa050 [project @ 2005-10-19 17:19:49 by paulb] Added notes on response headers. diff -r 991d85ac1f4e -r e325db7e56b7 docs/responses.html --- a/docs/responses.html Fri Oct 14 13:56:48 2005 +0000 +++ b/docs/responses.html Wed Oct 19 17:19:49 2005 +0000 @@ -1,11 +1,9 @@ - - - Responses and Presentation - - - + + + Responses and Presentation + +

Responses and Presentation

After performing some kind of @@ -29,7 +27,7 @@

  • Setting a response code to signal whether the application performed the requested operation successfully.
  • -
  • Setting a content type and a character encoding.
  • +
  • Setting a content type and a character encoding.
  • Possibly setting some response headers.
  • Producing content and sending it to the user.
  • @@ -61,9 +59,13 @@ relevant) of the data sent to the user. The media type describes the format of the data (eg. text/html - a Web page), whereas the character encoding describes how any -character information on the page is encoded - see "Character Encodings" -for more information. +character information on the page is encoded - see "Character Encodings" +for more information.
    set_header_value
    This +accepts a header name and a corresponding value. Response headers +convey information to the user (and their software) which is comparable +to that found in request headers sent in to +the Web application; for example, the content type information is +transmitted using response headers (using the Content-Type header name), although the above set_content_type method is a more convenient means of preparing such information.
    get_response_stream
    This returns the output stream through which data may be sent to the user.
    @@ -101,5 +103,4 @@ displayed as a Web page (amongst other things).

    See "Integration with Other Systems" for more information on the principles of using such external libraries.

    - - + \ No newline at end of file