|
@@ -9,6 +9,7 @@ from hapic.description import InputHeadersDescription
|
9
|
9
|
from hapic.description import InputFormsDescription
|
10
|
10
|
from hapic.description import InputFilesDescription
|
11
|
11
|
from hapic.description import OutputBodyDescription
|
|
12
|
+from hapic.description import OutputStreamDescription
|
12
|
13
|
from hapic.description import OutputFileDescription
|
13
|
14
|
from hapic.description import OutputHeadersDescription
|
14
|
15
|
from hapic.description import ErrorDescription
|
|
@@ -96,6 +97,16 @@ class DecorationBuffer(object):
|
96
|
97
|
self._description.output_body = description
|
97
|
98
|
|
98
|
99
|
@property
|
|
100
|
+ def output_stream(self) -> OutputStreamDescription:
|
|
101
|
+ return self._description.output_stream
|
|
102
|
+
|
|
103
|
+ @output_stream.setter
|
|
104
|
+ def output_stream(self, description: OutputStreamDescription) -> None:
|
|
105
|
+ if self._description.output_stream is not None:
|
|
106
|
+ raise AlreadyDecoratedException()
|
|
107
|
+ self._description.output_stream = description
|
|
108
|
+
|
|
109
|
+ @property
|
99
|
110
|
def output_file(self) -> OutputFileDescription:
|
100
|
111
|
return self._description.output_file
|
101
|
112
|
|