HttpResponseMessage Interface
public interface HttpResponseMessage
An HttpResponseMessage instance is returned by Azure Functions methods that are triggered by an HttpTrigger.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
getBody()
Returns the body of the HTTP response. |
abstract java.lang.String |
getHeader(String key)
Returns a header value for the given key. |
abstract
Http |
getStatus()
Returns the HTTP status code set on the Http |
default int |
getStatusCode()
Returns the HTTP status code set on the Http |
Method Details
getBody
public abstract Object getBody()
Returns the body of the HTTP response.
Returns:
getHeader
public abstract String getHeader(String key)
Returns a header value for the given key.
Parameters:
Returns:
getStatus
public abstract HttpStatusType getStatus()
Returns the HTTP status code set on the HttpResponseMessage instance.
Returns:
getStatusCode
public default int getStatusCode()
Returns the HTTP status code set on the HttpResponseMessage instance.
Returns:
Applies to
Azure SDK for Java