|
1 | 1 | == Server Information Document Use |
2 | 2 |
|
3 | | -A host will make the document available through one or more methods. Depending upon the endpoint and |
4 | | -method of retrieval the retrieved document may describe one or more applications. |
| 3 | +A host will make the document available through one or more methods. Depending |
| 4 | +upon the endpoint and method of retrieval the retrieved document may describe |
| 5 | +one or more applications. |
5 | 6 |
|
6 | | -If a document provides information for more than one application it SHOULD contain information allowing |
7 | | -clients to obtain information about each individual application only. This allows a client to determine |
8 | | -what the actual limits and features are for the specific application. |
| 7 | +If a document provides information for more than one application it SHOULD |
| 8 | +contain information allowing clients to obtain information about each individual |
| 9 | +application only. This allows a client to determine what the actual limits and |
| 10 | +features are for the specific application. |
9 | 11 |
|
10 | 12 | === Server Information Location and Retrieval |
11 | 13 |
|
12 | 14 | ==== Server Information Retrieval |
13 | 15 |
|
14 | | -The document may be retrieved from the server by including the server-info-token header field with a |
15 | | -value of "*" any request to the server. |
| 16 | +The document may be retrieved from the server by including the server-info-token |
| 17 | +header field with a value of "*" any request to the server. |
16 | 18 |
|
17 | | -The server MUST respond to such a request by including a LINK header field with a reltype of |
18 | | -"server-info", a token parameter with the current token value and the url being the location of the |
19 | | -document. |
| 19 | +The server MUST respond to such a request by including a LINK header field with |
| 20 | +a reltype of "server-info", a token parameter with the current token value and |
| 21 | +the url being the location of the document. |
20 | 22 |
|
21 | | -Following that a GET may be executed by the client against that URL, specifying a content type in the |
22 | | -ACCEPT header field of "application/server-info+xml". |
| 23 | +Following that a GET may be executed by the client against that URL, specifying |
| 24 | +a content type in the ACCEPT header field of "application/server-info+xml". |
23 | 25 |
|
24 | | -Clients SHOULD retrieve the document in the context of a session and applications SHOULD ensure the |
25 | | -context is appropriate. Values in the returned document may differ depending on who is authenticated so a |
26 | | -server SHOULD require authentication before returning server information for an authenticated application. |
| 26 | +Clients SHOULD retrieve the document in the context of a session and |
| 27 | +applications SHOULD ensure the context is appropriate. Values in the returned |
| 28 | +document may differ depending on who is authenticated so a server SHOULD require |
| 29 | +authentication before returning server information for an authenticated |
| 30 | +application. |
27 | 31 |
|
28 | 32 | ==== Server Information Synchronization |
29 | 33 |
|
30 | | -While server features may not change frequently it may be important for clients to react rapidly when |
31 | | -server features or limits change. Polling for server feature changes is undesirable so this specification |
32 | | -allows clients to check for such changes during normal operations. |
| 34 | +While server features may not change frequently it may be important for clients |
| 35 | +to react rapidly when server features or limits change. Polling for server |
| 36 | +feature changes is undesirable so this specification allows clients to check for |
| 37 | +such changes during normal operations. |
33 | 38 |
|
34 | | -Clients SHOULD include the server-info-token header field with the current stored value of the token from |
35 | | -the document in requests to the server. |
| 39 | +Clients SHOULD include the server-info-token header field with the current |
| 40 | +stored value of the token from the document in requests to the server. |
36 | 41 |
|
37 | | -The server MUST add the link header field to the response when the tokens do not match. |
| 42 | +The server MUST add the link header field to the response when the tokens do not |
| 43 | +match. |
38 | 44 |
|
39 | 45 | ===== Header Field: server-info-token |
40 | 46 |
|
41 | | -The server-info-token header field takes as a value the current value of the token element in the |
42 | | -server-info document or the value "*". |
| 47 | +The server-info-token header field takes as a value the current value of the |
| 48 | +token element in the server-info document or the value "*". |
43 | 49 |
|
44 | | -This header field may be included in a request at any time a client feels appropriate. |
| 50 | +This header field may be included in a request at any time a client feels |
| 51 | +appropriate. |
45 | 52 |
|
46 | 53 | ===== Header Field: link |
47 | 54 |
|
48 | | -The link header field is defined in <<RFC5988>>. The target IRI as defined by that specification will be the |
49 | | -location of the server information document. The "reltype" parameter will have the value "server-info". |
| 55 | +The link header field is defined in <<RFC5988>>. The target IRI as defined by |
| 56 | +that specification will be the location of the server information document. The |
| 57 | +"reltype" parameter will have the value "server-info". |
50 | 58 |
|
51 | | -Additionally, there will be a "token" parameter which has a quoted token as the value. |
| 59 | +Additionally, there will be a "token" parameter which has a quoted token as the |
| 60 | +value. |
52 | 61 |
|
53 | | -This header field may be included in a response at any time a server feels appropriate. |
| 62 | +This header field may be included in a response at any time a server feels |
| 63 | +appropriate. |
54 | 64 |
|
55 | 65 | The link header field MUST be returned in response to: |
56 | 66 |
|
57 | | -* An OPTIONS request where the server-info-token header is absent or it's value does not match. |
58 | | -* Any request with the server-info-token header field where the value of the header field does not math |
59 | | -the current token value. |
| 67 | +* An OPTIONS request where the server-info-token header is absent or it's value |
| 68 | +does not match. * Any request with the server-info-token header field where the |
| 69 | +value of the header field does not math the current token value. |
60 | 70 |
|
61 | 71 | The link header field SHOULD be returned when a client: |
62 | 72 |
|
63 | 73 | * Attempts to use an unsupported feature. |
64 | 74 | * Misuses a feature according to the server info document. |
65 | 75 | * Exceeds a limit defined in the document. |
66 | 76 |
|
67 | | -If the server returns a link header field as part of the response it is an indication to the client that |
68 | | -it SHOULD fetch a new copy of the server information document. |
| 77 | +If the server returns a link header field as part of the response it is an |
| 78 | +indication to the client that it SHOULD fetch a new copy of the server |
| 79 | +information document. |
69 | 80 |
|
70 | | -The following is an example of a link header field - folded |
71 | | -to fit on the page |
| 81 | +The following is an example of a link header field - folded to fit on the page |
72 | 82 |
|
73 | 83 | [source%unnumbered] |
74 | 84 | ---- |
|
0 commit comments