### YamlMime:JavaType
uid: "com.microsoft.azure.sdk.iot.deps.transport.http.HttpRequest"
fullName: "com.microsoft.azure.sdk.iot.deps.transport.http.HttpRequest"
name: "HttpRequest"
nameWithType: "HttpRequest"
inheritances:
- ""
inheritedClassMethods:
- classRef: ""
methodsRef:
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
syntax: "public class **HttpRequest**"
constructors:
- uid: "com.microsoft.azure.sdk.iot.deps.transport.http.HttpRequest.HttpRequest()"
fullName: "com.microsoft.azure.sdk.iot.deps.transport.http.HttpRequest.HttpRequest()"
name: "HttpRequest()"
nameWithType: "HttpRequest.HttpRequest()"
modifiers:
- "protected"
syntax: "protected HttpRequest()"
- uid: "com.microsoft.azure.sdk.iot.deps.transport.http.HttpRequest.HttpRequest(java.net.URL,com.microsoft.azure.sdk.iot.deps.transport.http.HttpMethod,byte[])"
fullName: "com.microsoft.azure.sdk.iot.deps.transport.http.HttpRequest.HttpRequest(URL url, HttpMethod method, byte[] body)"
name: "HttpRequest(URL url, HttpMethod method, byte[] body)"
nameWithType: "HttpRequest.HttpRequest(URL url, HttpMethod method, byte[] body)"
summary: "Constructor."
parameters:
- description: "The URL for the request."
name: "url"
type: ""
- description: "The HTTPS request method (i.e. GET)."
name: "method"
type: ""
- description: "The request body. Must be an array of size 0 if the request method is GET or DELETE."
name: "body"
type: "[]"
syntax: "public HttpRequest(URL url, HttpMethod method, byte[] body)"
exceptions:
- description: "This exception thrown if an IOException occurs\n in setting up the HTTPS connection."
type: ""
desc: "Constructor. Takes a URL as an argument and returns an HTTPS request that is ready to be sent."
fields:
- uid: "com.microsoft.azure.sdk.iot.deps.transport.http.HttpRequest.connection"
fullName: "com.microsoft.azure.sdk.iot.deps.transport.http.HttpRequest.connection"
name: "connection"
nameWithType: "HttpRequest.connection"
summary: "The underlying HTTPS connection stream."
modifiers:
- "protected"
- "final"
field:
type: ""
syntax: "protected final HttpConnection connection"
desc: "The underlying HTTPS connection stream."
methods:
- uid: "com.microsoft.azure.sdk.iot.deps.transport.http.HttpRequest.send()"
fullName: "com.microsoft.azure.sdk.iot.deps.transport.http.HttpRequest.send()"
name: "send()"
nameWithType: "HttpRequest.send()"
summary: "Executes the HTTPS request."
syntax: "public HttpResponse send()"
exceptions:
- description: "This exception thrown if the connection could not be\n established, or the input/output streams could not be accessed."
type: ""
desc: "Executes the HTTPS request."
returns:
description: "The HTTPS response."
type: ""
- uid: "com.microsoft.azure.sdk.iot.deps.transport.http.HttpRequest.setHeaderField(java.lang.String,java.lang.String)"
fullName: "com.microsoft.azure.sdk.iot.deps.transport.http.HttpRequest.setHeaderField(String field, String value)"
name: "setHeaderField(String field, String value)"
nameWithType: "HttpRequest.setHeaderField(String field, String value)"
summary: "Sets the header field to the given value."
parameters:
- description: "The header field name."
name: "field"
type: ""
- description: "The header field value."
name: "value"
type: ""
syntax: "public HttpRequest setHeaderField(String field, String value)"
desc: "Sets the header field to the given value."
returns:
description: "The object itself, for fluent setting."
type: ""
- uid: "com.microsoft.azure.sdk.iot.deps.transport.http.HttpRequest.setReadTimeoutMillis(int)"
fullName: "com.microsoft.azure.sdk.iot.deps.transport.http.HttpRequest.setReadTimeoutMillis(int timeout)"
name: "setReadTimeoutMillis(int timeout)"
nameWithType: "HttpRequest.setReadTimeoutMillis(int timeout)"
summary: "Sets the read timeout, in milliseconds, for the request."
parameters:
- description: "The read timeout."
name: "timeout"
type: ""
syntax: "public HttpRequest setReadTimeoutMillis(int timeout)"
desc: "Sets the read timeout, in milliseconds, for the request. The read timeout is the number of milliseconds after the server receives a request and before the server sends data back."
returns:
description: "The object itself, for fluent setting."
type: ""
- uid: "com.microsoft.azure.sdk.iot.deps.transport.http.HttpRequest.setSSLContext(javax.net.ssl.SSLContext)"
fullName: "com.microsoft.azure.sdk.iot.deps.transport.http.HttpRequest.setSSLContext(SSLContext sslContext)"
name: "setSSLContext(SSLContext sslContext)"
nameWithType: "HttpRequest.setSSLContext(SSLContext sslContext)"
parameters:
- name: "sslContext"
type: ""
syntax: "public HttpRequest setSSLContext(SSLContext sslContext)"
returns:
type: ""
type: "class"
metadata: {}
package: "com.microsoft.azure.sdk.iot.deps.transport.http"
artifact: com.microsoft.azure.sdk.iot:iot-deps:0.12.0