----------------------------------------------------------------------------- -- -- libwww-ada95 : A World Wide Web client library for Ada95 -- -- W W W . R E S P O N S E -- -- S p e c -- -- Copyright (C) 1997-1998 Regents of the University of California -- -- libwww-ada95 is free software; you can redistribute it and/or modify it -- under the terms of the GNU General Public License as published by the Free -- Software Foundation, with or without the single exception listed below; -- either version 2, or (at your option) any later version. libwww-ada95 is -- distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; -- without even the implied warranty of MERCHANTABILITY or FITNESS FOR A -- PARTICULAR PURPOSE. See the GNU General Public License for more details. -- You should have received a copy of the GNU General Public License -- distributed with libwww-ada95; see the file COPYING. If not, write to the -- Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA -- 02111-1307, USA. -- -- As a special exception, if other files instantiate generics from this -- library, or you link this library with other files to produce an -- executable, this library does not by itself cause the resulting -- executable to be covered by the GNU General Public License. This -- exception does not however invalidate any other reasons why the -- executable file might be covered by the GNU General Public License. -- -- Created in 1997 by Kari Nies ----------------------------------------------------------------------------- with Ada.Strings.Unbounded; with WWW.Message; package WWW.Response is package UB_Strings renames Ada.Strings.Unbounded; subtype UB_String is Ada.Strings.Unbounded.Unbounded_String; type Response_Object is new Message.Message_Object with record Status_Code : INTEGER; Reason_Phrase : UB_String; end record; -- Status code access procedure Set_Status_Code (Response : in out Response_Object; Status : INTEGER); function Get_Status_Code (Response : Response_Object) return INTEGER; -- Reason phrase access procedure Set_Reason_Phrase (Response : in out Response_Object; Reason : UB_String); procedure Set_Reason_Phrase (Response : in out Response_Object; Reason : STRING); function Get_Reason_Phrase (Response : Response_Object) return UB_String; function Get_Reason_Phrase (Response : Response_Object) return STRING; procedure Print_Message (Response : Response_Object); end WWW.Response;