/library/server/httpd/interface/response/httpd_response.e

http://github.com/jocelyn/EiffelWebReloaded · Specman e · 56 lines · 43 code · 12 blank · 1 comment · 1 complexity · a463fce67923c118ee047df5329c61d6 MD5 · raw file

  1. note
  2. description: "Summary description for {HTTPD_RESPONSE}."
  3. legal: "See notice at end of class."
  4. status: "See notice at end of class."
  5. date: "$Date$"
  6. revision: "$Revision$"
  7. deferred class
  8. HTTPD_RESPONSE
  9. feature {NONE} -- Initialization
  10. initialize
  11. do
  12. create headers.make
  13. end
  14. feature -- Recycle
  15. recycle
  16. do
  17. headers.recycle
  18. end
  19. feature -- Access
  20. headers: HTTPD_HEADER
  21. feature -- Query
  22. string: STRING
  23. -- String representation of the response
  24. deferred
  25. ensure
  26. result_attached: Result /= Void
  27. end
  28. send (output: HTTPD_SERVER_OUTPUT)
  29. do
  30. output.put_string (string)
  31. end
  32. invariant
  33. header_attached: headers /= Void
  34. note
  35. copyright: "Copyright (c) 1984-2011, Eiffel Software and others"
  36. license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
  37. source: "[
  38. Eiffel Software
  39. 5949 Hollister Ave., Goleta, CA 93117 USA
  40. Telephone 805-685-1006, Fax 805-685-6869
  41. Website http://www.eiffel.com
  42. Customer support http://support.eiffel.com
  43. ]"
  44. end