HttpOutput Interface
public interface HttpOutput
Place this on a parameter whose value would be send back to the user as an HTTP response. The parameter type should be OutputBinding<T>, where T could be one of:
<li>
<p>
<xref uid="com.microsoft.azure.functions.HttpResponseMessage" data-throw-if-not-resolved="false" data-raw-source="HttpResponseMessage"></xref>
</p>
</li>
<li>
<p>Any native Java types such as int, String, byte[] </p>
</li>
<li>
<p>Any POJO type </p>
</li>
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
dataType()
Defines how Functions runtime should treat the parameter value. Possible values are:
|
String |
name()
The variable name used in function.json. |
Method Details
dataType
public String dataType() default ""
Defines how Functions runtime should treat the parameter value. Possible values are:
<li>
<p>"" or string: treat it as a string whose value is serialized from the parameter </p>
</li>
<li>
<p>binary: treat it as a binary data whose value comes from for example OutputBinding<byte[]> </p>
</li>
Returns:
The dataType which will be used by the Functions runtime.
name
public String name()
The variable name used in function.json.
Returns:
The variable name used in function.json.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java