This document covers how IRC lines are represented over HTTP.
The content-negotiation feature of HTTP is used to declare the IRC
capabilities.
For example, if the request was from a client aimed towards an IRC server. The
following content-type and accept header should be used:
Content-Type: application/client+irc
Accept: application/server+irc
A HTTP client can request server-time and echo-message capability.
Content-Type: application/client+irc
Accept: application/server+irc; server-time, echo-message
If the server allows both capabilities to be enabled, an example may look like
the following:
> POST / HTTP/1.1
> Content-Type: application/client+irc
> Accept: application/server+irc; server-time, echo-message
> Connection: close
>
> PRIVMSG #palaver :Hello
< 200 OK
< Content-Type: application/server+irc; server-time, echo-message
<
< @time=... :kyle@palaver.chat PRIVMSG #palaver :Hello
If the server didn't accept echo-message, the following response may be found:
< 204 OK
< Content-Type: application/server+irc; server-time