@Test public void computeOriginForPlainUriWithImplicitPort() { assertEquals(HttpUtils.originHeader(Uri.create("ws: }
public static String originHeader(Uri uri) { StringBuilder sb = StringBuilderPool.DEFAULT.stringBuilder(); sb.append(uri.isSecured() ? "https: if (uri.getExplicitPort() != uri.getSchemeDefaultPort()) { sb.append(':').append(uri.getPort()); } return sb.toString(); }
HttpUtils { public static String originHeader(Uri uri) { StringBuilder sb = StringBuilderPool.DEFAULT.stringBuilder(); sb.append(uri.isSecured() ? "https: if (uri.getExplicitPort() != uri.getSchemeDefaultPort()) { sb.append(':').append(uri.getPort()); } return sb.toString(); } }
HttpUtils { public static String originHeader(Uri uri) { StringBuilder sb = StringBuilderPool.DEFAULT.stringBuilder(); sb.append(uri.isSecured() ? "https: if (uri.getExplicitPort() != uri.getSchemeDefaultPort()) { sb.append(':').append(uri.getPort()); } return sb.toString(); } private  HttpUtils(); }
HttpUtils { public static String originHeader(Uri uri) { StringBuilder sb = StringBuilderPool.DEFAULT.stringBuilder(); sb.append(uri.isSecured() ? "https: if (uri.getExplicitPort() != uri.getSchemeDefaultPort()) { sb.append(':').append(uri.getPort()); } return sb.toString(); } private  HttpUtils(); static String hostHeader(Uri uri); static String originHeader(Uri uri); static Charset extractContentTypeCharsetAttribute(String contentType); static String extractContentTypeBoundaryAttribute(String contentType); static byte[] computeMultipartBoundary(); static String patchContentTypeWithBoundaryAttribute(CharSequence base, byte[] boundary); static boolean followRedirect(AsyncHttpClientConfig config, Request request); static ByteBuffer urlEncodeFormParams(List<Param> params, Charset charset); static CharSequence filterOutBrotliFromAcceptEncoding(String acceptEncoding); }
HttpUtils { public static String originHeader(Uri uri) { StringBuilder sb = StringBuilderPool.DEFAULT.stringBuilder(); sb.append(uri.isSecured() ? "https: if (uri.getExplicitPort() != uri.getSchemeDefaultPort()) { sb.append(':').append(uri.getPort()); } return sb.toString(); } private  HttpUtils(); static String hostHeader(Uri uri); static String originHeader(Uri uri); static Charset extractContentTypeCharsetAttribute(String contentType); static String extractContentTypeBoundaryAttribute(String contentType); static byte[] computeMultipartBoundary(); static String patchContentTypeWithBoundaryAttribute(CharSequence base, byte[] boundary); static boolean followRedirect(AsyncHttpClientConfig config, Request request); static ByteBuffer urlEncodeFormParams(List<Param> params, Charset charset); static CharSequence filterOutBrotliFromAcceptEncoding(String acceptEncoding); static final AsciiString ACCEPT_ALL_HEADER_VALUE; static final AsciiString GZIP_DEFLATE; }