public class DefaultNWebCli extends Object implements NWebCli
| Constructor and Description |
|---|
DefaultNWebCli() |
public static NBootLog log
public static URLConnection prepareGlobalConnection(URLConnection c)
public static NDuration getGlobalConnectionTimeoutOrDefault()
public static NDuration getGlobalReadConnectionTimeoutOrDefault()
public static NDuration getGlobalConnectionTimeout()
public static NDuration getGlobalReadTimeout()
public static InputStream prepareGlobalOpenStream(URL url) throws IOException
IOExceptionpublic List<NWebCookie> cookies()
public NWebCli removeHeader(String name, String value)
removeHeader in interface NWebClipublic NWebCli removeHeader(String name)
removeHeader in interface NWebClipublic boolean containsHeader(String name)
containsHeader in interface NWebClipublic boolean containsCookie(String cookieName)
containsCookie in interface NWebClipublic NWebCli clearHeaders()
clearHeaders in interface NWebClipublic NWebCli clearCookies()
clearCookies in interface NWebClipublic NWebCli removeCookies(NWebCookie[] cookies)
removeCookies in interface NWebClipublic NWebCli removeCookie(NWebCookie cookie)
removeCookie in interface NWebClipublic NWebCli removeCookie(String cookieName)
removeCookie in interface NWebClipublic NWebCli addCookie(NWebCookie cookie)
public NWebCli addCookies(NWebCookie... cookies)
addCookies in interface NWebClipublic Function<NWebResponse,NWebResponse> responsePostProcessor()
responsePostProcessor in interface NWebClipublic NWebCli responsePostProcessor(Function<NWebResponse,NWebResponse> responsePostProcessor)
responsePostProcessor in interface NWebClipublic NWebRequest req(NHttpMethod method)
public NWebRequest GET()
public NWebRequest POST()
public NWebRequest PUT()
public NWebRequest DELETE()
public NWebRequest PATCH()
public NWebRequest OPTIONS()
public NWebRequest HEAD()
public NWebRequest CONNECT()
public NWebRequest TRACE()
public NWebRequest GET(String path)
public NWebRequest POST(String path)
public NWebRequest PUT(String path)
public NWebRequest DELETE(String path)
public NWebRequest PATCH(String path)
public NWebRequest OPTIONS(String path)
public NWebRequest HEAD(String path)
public NWebRequest CONNECT(String path)
public NWebRequest TRACE(String path)
public String formatURL(NWebRequest r, boolean safe)
public NWebResponse run(NWebRequest r)
public NDuration readTimeout()
readTimeout in interface NWebClipublic NWebCli readTimeout(NDuration readTimeout)
readTimeout in interface NWebClipublic NDuration connectTimeout()
connectTimeout in interface NWebClipublic NWebCli connectTimeout(NDuration connectTimeout)
connectTimeout in interface NWebCliCopyright © 2026 vpc open source initiative. All rights reserved.