Compartir a través de


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:

    <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&lt;byte[]&gt; </p>
    
    </li>
    

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&lt;byte[]&gt; </p>
    
    </li>
    

Returns:

DataType que usará el runtime de Functions.

name

public String name()

Nombre de variable usado en function.json.

Returns:

Nombre de variable usado en function.json.

Se aplica a