Uses of Class
io.fluxzero.sdk.web.WebResponse.Builder
Packages that use WebResponse.Builder
-
Uses of WebResponse.Builder in io.fluxzero.sdk.web
Methods in io.fluxzero.sdk.web that return WebResponse.BuilderModifier and TypeMethodDescriptionstatic WebResponse.BuilderWebResponse.builder()Creates a newWebResponse.Builderinstance for constructingWebResponseobjects.WebResponse.Builder.clearHeader(String key) Removes all values for the header and returns this builder.WebResponse.Builder.clearHeaders()Removes all currently stored headers and returns this builder.WebResponse.Builder.contentType(String contentType) Sets the singleContent-Type, replacing any inferred or previously configured value.WebResponse.Builder.cookie(HttpCookie cookie) Adds a response cookie and returns this builder.Appends a header value and returns this builder; a null value is ignored.WebResponse.Builder.header(String key, Collection<String> values) Appends the supplied values to the header and returns this builder.Replaces header values for the supplied keys, retaining other headers, and returns this builder.Sets the payload and returns this builder.WebResponse.Builder.singleValuedHeaders(Map<String, String> headers) Appends each non-null single-valued header and returns this builder.WebResponse.toBuilder()Converts this WebResponse instance into a builder, which can be used to create a modified copy of the instance.