Skip to content

Commit

Permalink
HTTPCORE-668 - W3C recommendation text/event-stream
Browse files Browse the repository at this point in the history
  • Loading branch information
arturobernalg authored and ok2c committed Feb 12, 2021
1 parent 8101bbf commit e13186b
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -109,6 +109,13 @@ public final class ContentType implements Serializable {
"text/plain", StandardCharsets.ISO_8859_1);
public static final ContentType TEXT_XML = create(
"text/xml", StandardCharsets.UTF_8);
/**
* Public constant media type for {@code text/event-stream}.
* @see <a href="https://www.w3.org/TR/eventsource/">Server-Sent Events W3C recommendation</a>
* @since 5.1
*/
public static final String TEXT_EVENT_STREAM = "text/event-stream";

public static final ContentType WILDCARD = create(
"*/*", (Charset) null);

Expand Down

0 comments on commit e13186b

Please sign in to comment.