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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應