mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-25 10:42:19 -05:00
fixed right scrolling in examples
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@581 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
daa4f16b65
commit
0d387288e3
31
xep-0124.xml
31
xep-0124.xml
@ -911,16 +911,26 @@ Content-Length: 0]]></example>
|
|||||||
<li><p>The resulting URI MUST be sent to the connection manager within an HTTP GET request.</p></li>
|
<li><p>The resulting URI MUST be sent to the connection manager within an HTTP GET request.</p></li>
|
||||||
<li><p>Include extra HTTP headers to prevent request/response caching or storage by any intermediary.</p></li>
|
<li><p>Include extra HTTP headers to prevent request/response caching or storage by any intermediary.</p></li>
|
||||||
</ol>
|
</ol>
|
||||||
<example caption="Requesting an HTTP session in Script Syntax">
|
<p>Note: Line breaks in the HTTP requests shown in the following examples are not significant and are included only to improve readability.</p>
|
||||||
<![CDATA[GET /webclient?%3Cbody%20content='text/xml;%20charset=utf-8'%20hold='1'%20rid='1573741820'%20to='jabber.org'%20route='xmpp:jabber.org:9999'%20secure='true'%20ver='1.6'%20wait='60'%20xml:lang='en'%20xmlns='http://jabber.org/protocol/httpbind'/%3E HTTP/1.1
|
<example caption="Requesting an HTTP session in Script Syntax"><![CDATA[
|
||||||
|
GET /webclient?%3Cbody%20content='text/xml;%20charset=utf-8'%20
|
||||||
|
hold='1'%20rid='1573741820'%20to='jabber.org'%20
|
||||||
|
route='xmpp:jabber.org:9999'%20secure='true'%20ver='1.6'%20
|
||||||
|
wait='60'%20xml:lang='en'%20
|
||||||
|
xmlns='http://jabber.org/protocol/httpbind'/%3E
|
||||||
|
HTTP/1.1
|
||||||
Host: httpcm.jabber.org
|
Host: httpcm.jabber.org
|
||||||
Accept-Encoding: gzip, deflate
|
Accept-Encoding: gzip, deflate
|
||||||
Cache-Control: no-store
|
Cache-Control: no-store
|
||||||
Cache-Control: no-cache
|
Cache-Control: no-cache
|
||||||
Pragma: no-cache
|
Pragma: no-cache
|
||||||
Content-Length: 0]]></example>
|
Content-Length: 0]]></example>
|
||||||
<example caption="Transmitting stanzas in Script Syntax">
|
<example caption="Transmitting stanzas in Script Syntax"><![CDATA[
|
||||||
<![CDATA[GET /webclient?%3Cbody%20rid='1249243562'%20sid='SomeSID'%20xmlns='http://jabber.org/protocol/httpbind'%3E%3Cmessage%20to='friend@example.com'%20xmlns='jabber:client'%3E%3Cbody%3EI%20said%20%22Hi!%22%3C/body%3E%3C/message%3E%3C/body%3E HTTP/1.1
|
GET /webclient?%3Cbody%20rid='1249243562'%20sid='SomeSID'%20
|
||||||
|
xmlns='http://jabber.org/protocol/httpbind'%3E%3C
|
||||||
|
message%20to='friend@example.com'%20xmlns='jabber:client'%3E%3C
|
||||||
|
body%3EI%20said%20%22Hi!%22%3C/body%3E%3C/message%3E%3C/body%3E
|
||||||
|
HTTP/1.1
|
||||||
Host: httpcm.jabber.org
|
Host: httpcm.jabber.org
|
||||||
Accept-Encoding: gzip, deflate
|
Accept-Encoding: gzip, deflate
|
||||||
Cache-Control: no-store
|
Cache-Control: no-store
|
||||||
@ -948,6 +958,7 @@ Content-Length: 0]]></example>
|
|||||||
<li><p>If the client request does not possess a 'content' attribute, then the HTTP Content-Type header of responses MUST be either "text/javascript; charset=utf-8" or "application/x-javascript; charset=utf-8".</p></li>
|
<li><p>If the client request does not possess a 'content' attribute, then the HTTP Content-Type header of responses MUST be either "text/javascript; charset=utf-8" or "application/x-javascript; charset=utf-8".</p></li>
|
||||||
<li><p>Include extra HTTP headers to prevent caching or storage by any intermediary.</p></li>
|
<li><p>Include extra HTTP headers to prevent caching or storage by any intermediary.</p></li>
|
||||||
</ol>
|
</ol>
|
||||||
|
<p>Note: Line breaks in the _BOSH_ code shown in the following examples are not significant and are included only to improve readability.</p>
|
||||||
<example caption="Session creation response in Script Syntax">
|
<example caption="Session creation response in Script Syntax">
|
||||||
<![CDATA[HTTP/1.1 200 OK
|
<![CDATA[HTTP/1.1 200 OK
|
||||||
Content-Type: text/javascript; charset=utf-8
|
Content-Type: text/javascript; charset=utf-8
|
||||||
@ -956,7 +967,11 @@ Cache-Control: no-cache
|
|||||||
Pragma: no-cache
|
Pragma: no-cache
|
||||||
Content-Length: 233
|
Content-Length: 233
|
||||||
|
|
||||||
_BOSH_("<body wait='60' inactivity='30' polling='5' requests='2' hold='1' accept='deflate,gzip' maxpause='120' sid='SomeSID' charsets='ISO_8859-1 ISO-2022-JP' ver='1.6' from='jabber.org' secure='true' xmlns='http://jabber.org/protocol/httpbind'/>")]]></example>
|
_BOSH_("<body wait='60' inactivity='30' polling='5' requests='2' hold='1'
|
||||||
|
accept='deflate,gzip' maxpause='120' sid='SomeSID'
|
||||||
|
charsets='ISO_8859-1 ISO-2022-JP' ver='1.6' from='jabber.org'
|
||||||
|
secure='true' xmlns='http://jabber.org/protocol/httpbind'/>")
|
||||||
|
]]></example>
|
||||||
<example caption="Receiving stanzas in Script Syntax">
|
<example caption="Receiving stanzas in Script Syntax">
|
||||||
<![CDATA[HTTP/1.1 200 OK
|
<![CDATA[HTTP/1.1 200 OK
|
||||||
Content-Type: text/javascript; charset=utf-8
|
Content-Type: text/javascript; charset=utf-8
|
||||||
@ -965,7 +980,11 @@ Cache-Control: no-cache
|
|||||||
Pragma: no-cache
|
Pragma: no-cache
|
||||||
Content-Length: 212
|
Content-Length: 212
|
||||||
|
|
||||||
_BOSH_("<body rid='1249243562' sid='SomeSID' xmlns='http://jabber.org/protocol/httpbind'>\n<message to='contact@example.com' xmlns='jabber:client'>\n<body>I said \"Hi!\"</body>\n</message>\n</body>")]]></example>
|
_BOSH_("<body rid='1249243562' sid='SomeSID'
|
||||||
|
xmlns='http://jabber.org/protocol/httpbind'>\n
|
||||||
|
<message to='contact@example.com' xmlns='jabber:client'>\n
|
||||||
|
<body>I said \"Hi!\"</body>\n</message>\n</body>")
|
||||||
|
]]></example>
|
||||||
<p>Note: As with Pure Syntax, each <body/> element sent to the client MUST encapsulate zero or more complete XML stanzas.</p>
|
<p>Note: As with Pure Syntax, each <body/> element sent to the client MUST encapsulate zero or more complete XML stanzas.</p>
|
||||||
</section2>
|
</section2>
|
||||||
</section1>
|
</section1>
|
||||||
|
Loading…
Reference in New Issue
Block a user