HttpOutput Interfaz
public interface HttpOutput
Colóquelo en un parámetro cuyo valor se devolvería al usuario como respuesta HTTP. El tipo de parámetro debe ser OutputBinding<T>, donde T podría ser uno de los siguientes:
<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>
Resumen del método
Modificador y tipo | Método y descripción |
---|---|
String |
dataType()
Define cómo debe tratar Functions Runtime el valor del parámetro. Los valores posibles son:
|
String |
name()
Nombre de variable usado en function.json. |
Detalles del método
dataType
public String dataType() default ""
Define cómo debe tratar Functions Runtime el valor del parámetro. Los valores posibles son:
<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:
name
public String name()
Nombre de variable usado en function.json.
Returns:
Se aplica a
Azure SDK for Java
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente GitHub Issues como mecanismo de comentarios sobre el contenido y lo sustituiremos por un nuevo sistema de comentarios. Para más información, vea:Enviar y ver comentarios de