Constructor and Description |
---|
MethodBuilder() |
Modifier and Type | Method and Description |
---|---|
Request.Builder |
delete(String path)
Factory method for DELETE HTTP method.
|
Request.Builder |
get(String path)
Factory method for GET HTTP method.
|
Request.Builder |
head(String path)
Factory method for HEAD HTTP method.
|
Request.Builder |
method(String method,
String path)
Factory method for a generic HTTP method.
|
Request.Builder |
options(String path)
Factory method for OPTIONS HTTP method.
|
Request.Builder |
patch(String path)
Factory method for PATCH HTTP method.
|
Request.Builder |
post(String path)
Factory method for POST HTTP method.
|
Request.Builder |
put(String path)
Factory method for PUT HTTP method.
|
Request.Builder |
trace(String path)
Factory method for TRACE HTTP method.
|
public Request.Builder method(String method, String path)
method
- to callpath
- to callpublic Request.Builder delete(String path)
path
- to callpublic Request.Builder get(String path)
path
- to callpublic Request.Builder head(String path)
path
- to callpublic Request.Builder options(String path)
path
- to callpublic Request.Builder patch(String path)
path
- to callpublic Request.Builder post(String path)
path
- to callpublic Request.Builder put(String path)
path
- to callpublic Request.Builder trace(String path)
path
- to callCopyright © 2016–2022 Spring. All rights reserved.