| Modifier and Type | Method and Description |
|---|---|
Net.Builder |
Net.Builder.addHeader(java.lang.String name,
java.lang.String value)
Adds the supplied request header.
|
Net.Builder |
Net.req(java.lang.String url)
Creates a builder for a request with the specified URL.
|
Net.Builder |
Net.Builder.setPayload(byte[] payload)
Configures the payload of this request as raw bytes with content type
"application/octet-stream".
|
Net.Builder |
Net.Builder.setPayload(byte[] payload,
java.lang.String contentType)
Configures the payload of this request as raw bytes with the specified content type.
|
Net.Builder |
Net.Builder.setPayload(java.lang.String payload)
Configures the payload of this request as a UTF-8 string with content type "text/plain".
|
Net.Builder |
Net.Builder.setPayload(java.lang.String payload,
java.lang.String contentType)
Configures the payload of this request as a UTF-8 string with content type configured as
"
contentType; charset=UTF-8". |
Copyright © 2018. All Rights Reserved.