azure-docs-sdk-java/docs-ref-autogen/com.microsoft.azure.functio...

77 строки
4.9 KiB
YAML

### YamlMime:JavaType
uid: "com.microsoft.azure.functions.HttpResponseMessage.Builder"
fullName: "com.microsoft.azure.functions.HttpResponseMessage.Builder"
name: "HttpResponseMessage.Builder"
nameWithType: "HttpResponseMessage.Builder"
summary: "A builder to create an instance of Http<wbr>Response<wbr>Message"
syntax: "public static interface **HttpResponseMessage.Builder**"
methods:
- uid: "com.microsoft.azure.functions.HttpResponseMessage.Builder.body(java.lang.Object)"
fullName: "com.microsoft.azure.functions.HttpResponseMessage.Builder.body(Object body)"
name: "body(Object body)"
nameWithType: "HttpResponseMessage.Builder.body(Object body)"
summary: "Sets the body of the HTTP response."
modifiers:
- "abstract"
parameters:
- description: "The body of the HTTP response"
name: "body"
type: "<xref href=\"java.lang.Object?alt=java.lang.Object&text=Object\" data-throw-if-not-resolved=\"False\" />"
syntax: "public abstract HttpResponseMessage.Builder body(Object body)"
desc: "Sets the body of the HTTP response."
returns:
description: "this builder"
type: "<xref href=\"com.microsoft.azure.functions.HttpResponseMessage.Builder?alt=com.microsoft.azure.functions.HttpResponseMessage.Builder&text=Builder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.functions.HttpResponseMessage.Builder.build()"
fullName: "com.microsoft.azure.functions.HttpResponseMessage.Builder.build()"
name: "build()"
nameWithType: "HttpResponseMessage.Builder.build()"
summary: "Creates an instance of Http<wbr>Message<wbr>Response with the values configured in this builder."
modifiers:
- "abstract"
syntax: "public abstract HttpResponseMessage build()"
desc: "Creates an instance of HttpMessageResponse with the values configured in this builder."
returns:
description: "an HttpMessageResponse object"
type: "<xref href=\"com.microsoft.azure.functions.HttpResponseMessage?alt=com.microsoft.azure.functions.HttpResponseMessage&text=HttpResponseMessage\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.functions.HttpResponseMessage.Builder.header(java.lang.String,java.lang.String)"
fullName: "com.microsoft.azure.functions.HttpResponseMessage.Builder.header(String key, String value)"
name: "header(String key, String value)"
nameWithType: "HttpResponseMessage.Builder.header(String key, String value)"
summary: "Adds a (key, value) header to the response."
modifiers:
- "abstract"
parameters:
- description: "The key of the header value."
name: "key"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- description: "The value of the header value."
name: "value"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public abstract HttpResponseMessage.Builder header(String key, String value)"
desc: "Adds a (key, value) header to the response."
returns:
description: "this builder"
type: "<xref href=\"com.microsoft.azure.functions.HttpResponseMessage.Builder?alt=com.microsoft.azure.functions.HttpResponseMessage.Builder&text=Builder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.functions.HttpResponseMessage.Builder.status(com.microsoft.azure.functions.HttpStatusType)"
fullName: "com.microsoft.azure.functions.HttpResponseMessage.Builder.status(HttpStatusType status)"
name: "status(HttpStatusType status)"
nameWithType: "HttpResponseMessage.Builder.status(HttpStatusType status)"
summary: "Sets the status code to be used in the Http<wbr>Response<wbr>Message object."
modifiers:
- "abstract"
parameters:
- description: "An HTTP status code representing the outcome of the HTTP request."
name: "status"
type: "<xref href=\"com.microsoft.azure.functions.HttpStatusType?alt=com.microsoft.azure.functions.HttpStatusType&text=HttpStatusType\" data-throw-if-not-resolved=\"False\" />"
syntax: "public abstract HttpResponseMessage.Builder status(HttpStatusType status)"
desc: "Sets the status code to be used in the HttpResponseMessage object. You can provide standard HTTP Status using enum values from <xref uid=\"com.microsoft.azure.functions.HttpStatus\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpStatus\"></xref>, or you can create a custom status code using <xref uid=\"com.microsoft.azure.functions.HttpStatusType.custom(int)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpStatusType#custom(int)\"></xref>."
returns:
description: "this builder"
type: "<xref href=\"com.microsoft.azure.functions.HttpResponseMessage.Builder?alt=com.microsoft.azure.functions.HttpResponseMessage.Builder&text=Builder\" data-throw-if-not-resolved=\"False\" />"
type: "interface"
desc: "A builder to create an instance of HttpResponseMessage"
metadata: {}
package: "com.microsoft.azure.functions"
artifact: com.microsoft.azure.functions:azure-functions-java-library:1.3.1