private static boolean appendOneByte(Bytes buf, int cp, boolean wasSlash, ComponentType type) {
        if (cp == '/' && type == ComponentType.SERVER_PATH) {
            if (!wasSlash) {
                buf.ensure(1);
                buf.add((byte) '/');
            } else {
                // Remove the consecutive slashes: '/path//with///consecutive////slashes'.
            }
        } else {
            buf.ensure(1);
            if (type.isAllowed(cp)) {
                buf.add((byte) cp);
            } else if (type.isAllowedIfEncoded(cp)) {
                buf.addEncoded((byte) cp);
            } else {
                return false;
            }
        }

        return true;
    }
Marks this {@link RequestTarget} as stored in {@link RequestTargetCache} so that it doesn't
try to store again.
core/src/main/java/com/linecorp/armeria/internal/common/DefaultRequestTarget.java