Type Parameters
The type of the body content that is expected to be received as part of this HTTP request.
public interface HttpRequestMessage<T>
An HttpRequestMessage instance is provided to Azure functions that use HttpTrigger. For an example of how to use the http functionality of Azure Functions, refer to the example in the HttpTrigger
Method Details createResponseBuilderpublic abstract HttpResponseMessage.Builder createResponseBuilder(HttpStatus status)
Returns a HttpResponseMessage.Builder instance to build a HttpResponseMessage with standard HTTP status code and no response body.
Parameters:
status - The HTTP status code to return to the caller of the function.
Returns:
createResponseBuilderpublic abstract HttpResponseMessage.Builder createResponseBuilder(HttpStatusType status)
Returns a HttpResponseMessage.Builder instance to build a HttpResponseMessage with custome HTTP status code and no response body.
Parameters:
status - The HTTP status code to return to the caller of the function.
Returns:
getBodypublic abstract T getBody()
Returns any body content that was included with this HTTP request.
Returns:
any body content that was included with this HTTP request.
getHeaderspublic abstract Map<String,String> getHeaders()
Returns a map of headers that were contained within this HTTP request.
Returns:
a map of headers that were contained within this HTTP request.
getHttpMethodpublic abstract HttpMethod getHttpMethod()
Returns the HTTP method name as Enum
Returns:
type of HttpMethod
getQueryParameterspublic abstract Map<String,String> getQueryParameters()
Returns a map of query parameters that were included with this HTTP request.
Returns:
a map of query parameters that were included with this HTTP request.
getUripublic abstract URI getUri()
Returns the URI that was called that resulted in this HTTP request being submitted.
Returns:
the URI that was called that resulted in this HTTP request being submitted.
Applies toCollaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4