/** * Creates a `Header` from a full header string. The string format is colon-delimited as `KEY:VALUE`. * * [source,groovy] * ---- * Header header = Header.full('Content-Type:text/plain') * assert header.key == 'Content-Type' * assert header.value == 'text/plain' * ---- * * @param raw the full header string * @return the `Header` representing the given header string */ public static Header<?> full(final String raw) { return keyValue(key(raw), value(raw)); }
/** * Creates a `Header` from a full header string. The string format is colon-delimited as `KEY:VALUE`. * * [source,groovy] * ---- * Header header = Header.full('Content-Type:text/plain') * assert header.key == 'Content-Type' * assert header.value == 'text/plain' * ---- * * @param raw the full header string * @return the `Header` representing the given header string */ public static Header<?> full(final String raw) { return keyValue(key(raw), value(raw)); }
/** * Creates a `Header` from a full header string. The string format is colon-delimited as `KEY:VALUE`. * * [source,groovy] * ---- * Header header = Header.full('Content-Type:text/plain') * assert header.key == 'Content-Type' * assert header.value == 'text/plain' * ---- * * @param raw the full header string * @return the `Header` representing the given header string */ public static Header<?> full(final String raw) { return keyValue(key(raw), value(raw)); }