Uses of Class
com.github.mizosoft.methanol.MutableRequest
Packages that use MutableRequest
-
Uses of MutableRequest in com.github.mizosoft.methanol
Classes in com.github.mizosoft.methanol that implement interfaces with type arguments of type MutableRequestModifier and TypeClassDescriptionfinal classA mutableHttpRequestthat supportstags, relative URIs&setting arbitrary objects as request bodies.Methods in com.github.mizosoft.methanol that return MutableRequestModifier and TypeMethodDescriptionMutableRequest.adapterCodec(AdapterCodec adapterCodec) Set's theAdapterCodecto be used for resolving this request's payload.MutableRequest.apply(Consumer<? super MutableRequest> consumer) Calls the given consumer against this request.MutableRequest.cacheControl(CacheControl cacheControl) Sets theCache-Controlheader to the given value.MutableRequest.copy()Returns a copy of this request that is independent of this instance.static MutableRequestMutableRequest.copyOf(HttpRequest other) Returns a newMutableRequestthat is a copy of the given request.static MutableRequestMutableRequest.create()Returns a newMutableRequest.static MutableRequestReturns a newMutableRequestwith the given URI and a default GET method.static MutableRequestReturns a newMutableRequestwith the given URI and a default GET method.MutableRequest.DELETE()static MutableRequestReturns a newMutableRequestwith the given URI and a DELETE method.static MutableRequestReturns a newMutableRequestwith the given URI and a DELETE method.MutableRequest.expectContinue(boolean enable) MutableRequest.GET()static MutableRequestReturns a newMutableRequestwith the given URI and a GET method.static MutableRequestReturns a newMutableRequestwith the given URI and a GET method.MutableRequest.HEAD()static MutableRequestReturns a newMutableRequestwith the given URI and a HEAD method.static MutableRequestReturns a newMutableRequestwith the given URI and a HEAD method.MutableRequest.headers(HttpHeaders headers) Adds each of the givenHttpHeaders.<T> MutableRequestAdds the given value to this request'sBodyAdapter.Hints.MutableRequest.hints(Consumer<BodyAdapter.Hints.Builder> hintsMutator) Modifies this request'sBodyAdapter.Hintsby mutating aBodyAdapter.Hints.Builder.Sets the request method and sets the payload to the given value.MutableRequest.method(String method, HttpRequest.BodyPublisher bodyPublisher) <T> MutableRequestSets the request method and sets the payload to the given value with an explicitly specified type.Sets the request method to PATCH and sets the payload to the given value.static MutableRequestReturns a newMutableRequestwith the given URI and a PATCH method.static MutableRequestMutableRequest.PATCH(String uri, HttpRequest.BodyPublisher bodyPublisher) Returns a newMutableRequestwith the given URI and a PATCH method.static <T> MutableRequestReturns a newMutableRequestwith the given URI and a PATCH method.MutableRequest.PATCH(HttpRequest.BodyPublisher bodyPublisher) Sets the request method to PATCH and sets the body publisher to the given value.static MutableRequestReturns a newMutableRequestwith the given URI and a PATCH method.static MutableRequestMutableRequest.PATCH(URI uri, HttpRequest.BodyPublisher bodyPublisher) Returns a newMutableRequestwith the given URI and a PATCH method.static <T> MutableRequestReturns a newMutableRequestwith the given URI and a PATCH method.<T> MutableRequestSets the request method to PATCH and sets the payload to the given value with an explicitly specified type.Sets the request method to POST and sets the payload to the given value.static MutableRequestReturns a newMutableRequestwith the given URI and a POST method.static MutableRequestMutableRequest.POST(String uri, HttpRequest.BodyPublisher bodyPublisher) Returns a newMutableRequestwith the given URI and a POST method.static <T> MutableRequestReturns a newMutableRequestwith the given URI and a POST method.MutableRequest.POST(HttpRequest.BodyPublisher bodyPublisher) static MutableRequestReturns a newMutableRequestwith the given URI and a POST method.static MutableRequestMutableRequest.POST(URI uri, HttpRequest.BodyPublisher bodyPublisher) Returns a newMutableRequestwith the given URI and a POST method.static <T> MutableRequestReturns a newMutableRequestwith the given URI and a POST method.<T> MutableRequestSets the request method to POST and sets the payload to the given value with an explicitly specified type.Sets the request method to PUT and sets the payload to the given value.static MutableRequestReturns a newMutableRequestwith the given URI and a PUT method.static MutableRequestMutableRequest.PUT(String uri, HttpRequest.BodyPublisher bodyPublisher) Returns a newMutableRequestwith the given URI and a PUT method.static <T> MutableRequestReturns a newMutableRequestwith the given URI and a PUT method.MutableRequest.PUT(HttpRequest.BodyPublisher bodyPublisher) static MutableRequestReturns a newMutableRequestwith the given URI and a PUT method.static MutableRequestMutableRequest.PUT(URI uri, HttpRequest.BodyPublisher bodyPublisher) Returns a newMutableRequestwith the given URI and a PUT method.static <T> MutableRequestReturns a newMutableRequestwith the given URI and a PUT method.<T> MutableRequestSets the request method to PUT and sets the payload to the given value with an explicitly specified type.MutableRequest.removeHeader(String name) Removes any header associated with the given name.MutableRequest.removeHeaders()Removes all headers added so far.MutableRequest.removeHeadersIf(BiPredicate<String, String> filter) Removes all headers matched by the given predicate.MutableRequest.setHeaderIfAbsent(String name, String value) MutableRequest.setHeaderIfAbsent(String name, List<String> values) <T> MutableRequest<T> MutableRequestSets this request'sURI.Sets this request'sURI.MutableRequest.version(HttpClient.Version version) Method parameters in com.github.mizosoft.methanol with type arguments of type MutableRequestModifier and TypeMethodDescriptionMutableRequest.apply(Consumer<? super MutableRequest> consumer) Calls the given consumer against this request.