Uses of Class
io.meeds.commons.http.SafeFetchPolicyBuilder
Packages that use SafeFetchPolicyBuilder
-
Uses of SafeFetchPolicyBuilder in io.meeds.commons.http
Methods in io.meeds.commons.http that return SafeFetchPolicyBuilderModifier and TypeMethodDescriptionSafeFetchPolicyBuilder.acceptedContentTypes(Collection<String> contentTypes) Sets the media types an answer may declare; an answer declaring another, or none, is refused before its body is read.SafeFetchPolicyBuilder.allowedPorts(String ports, Collection<Integer> fallback) Reads a comma-separated list of ports, ignoring what is not one — a word, a number outside 1-65535, however many digits it has — as a deployment property states them; falls back to the given set when the list names no usable port.SafeFetchPolicyBuilder.allowedPorts(Collection<Integer> ports) Sets the ports a URL may reach, the implicit default ports included.SafeFetchPolicyBuilder.allowedSchemes(Collection<String> schemes) Sets the schemes a URL may use, withinSafeFetchPolicy.HTTP_SCHEMES.SafeFetchPolicyBuilder.anyPort()Lets a URL reach any port.static SafeFetchPolicyBuilderSafeFetchPolicy.builder()SafeFetchPolicyBuilder.connectTimeout(Duration timeout) Sets the longest wait for a connection.SafeFetchPolicyBuilder.httpsOnly()Allows https only.SafeFetchPolicyBuilder.internalAddressesAllowed(boolean allowed) Lets the fetcher reach internal addresses: a deployment's opt-out.SafeFetchPolicyBuilder.maxBytes(long bytes) Sets the largest body read, in bytes: a ceiling a request may lower, never raise.SafeFetchPolicyBuilder.maxConnections(int total, int perRoute) Sets the HTTP client's connection pool bounds.SafeFetchPolicyBuilder.maxRedirects(int redirects) Sets the most redirects followed; zero follows none.Names the fetcher, and so its deadline thread.SafeFetchPolicyBuilder.readTimeout(Duration timeout) Sets the longest wait between two reads.SafeFetchPolicyBuilder.resolver(HostResolver hostResolver) Replaces name resolution: the seam of the tests, a table of names.SafeFetchPolicyBuilder.totalTimeout(Duration timeout) Sets the longest read of a URL, redirects included, enforced by cancelling the request.Sets the User-Agent sent with every request.