T - The type of the body content that is expected to be received as part of this HTTP
request.public interface HttpRequestMessage<T>
HTTP Triggers. For an example of how
to use the http functionality of Azure Functions, refer to the example in the
HttpTriggerHttpTrigger,
HttpResponseMessage| Modifier and Type | Method and Description |
|---|---|
HttpResponseMessage.Builder |
createResponseBuilder(HttpStatus status)
Returns a
HttpResponseMessage.Builder instance to build a HttpResponseMessage with
standard HTTP status code and no response body. |
HttpResponseMessage.Builder |
createResponseBuilder(HttpStatusType status)
Returns a
HttpResponseMessage.Builder instance to build a HttpResponseMessage with
custome HTTP status code and no response body. |
T |
getBody()
Returns any body content that was included with this HTTP request.
|
Map<String,String> |
getHeaders()
Returns a map of headers that were contained within this HTTP request.
|
HttpMethod |
getHttpMethod()
Returns the HTTP method name as Enum
|
Map<String,String> |
getQueryParameters()
Returns a map of query parameters that were included with this HTTP request.
|
URI |
getUri()
Returns the URI that was called that resulted in this HTTP request being submitted.
|
URI getUri()
HttpMethod getHttpMethod()
Map<String,String> getHeaders()
Map<String,String> getQueryParameters()
T getBody()
HttpResponseMessage.Builder createResponseBuilder(HttpStatus status)
HttpResponseMessage.Builder instance to build a HttpResponseMessage with
standard HTTP status code and no response body.status - The HTTP status code to return to the caller of the function.HttpResponseMessage.Builder instance containing the provided status and
empty body.HttpResponseMessage.Builder createResponseBuilder(HttpStatusType status)
HttpResponseMessage.Builder instance to build a HttpResponseMessage with
custome HTTP status code and no response body.status - The HTTP status code to return to the caller of the function.HttpResponseMessage.Builder instance containing the provided status and
empty body.Copyright © 2020. All rights reserved.