public final class Request extends Object
Constructor and Description |
---|
Request() |
Modifier and Type | Method and Description |
---|---|
Object |
headers()
Get the headers property: A list of all the headers attached to the request.
|
String |
method()
Get the method property: The HTTP method used for the request.
|
String |
uri()
Get the uri property: The destination for the request.
|
void |
validate()
Validates the instance.
|
Request |
withHeaders(Object headers)
Set the headers property: A list of all the headers attached to the request.
|
Request |
withMethod(String method)
Set the method property: The HTTP method used for the request.
|
Request |
withUri(String uri)
Set the uri property: The destination for the request.
|
public Object headers()
public Request withHeaders(Object headers)
headers
- the headers value to set.public String uri()
public Request withUri(String uri)
uri
- the uri value to set.public String method()
public Request withMethod(String method)
method
- the method value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.