@@ -24,7 +24,7 @@ following common parts:
24
24
25
25
This division is purely logical -- in the underlying implementation,
26
26
the message type can choose to have different means of storing the
27
- data,dependinn on the type used to tag the message. This section
27
+ data,depending on the type used to tag the message. This section
28
28
covers the `Message Concept `_ as well as the `basic_message `_
29
29
implementation.
30
30
@@ -39,6 +39,7 @@ properties of messages.
39
39
**Legend **
40
40
41
41
:M: The message type.
42
+ :H: A headers container type.
42
43
:m,n: An instance of **M **.
43
44
:S: A string type.
44
45
:s,k,v: An instance of **S **.
@@ -58,20 +59,31 @@ properties of messages.
58
59
+----------------------------+----------------------+-----------------------------------------+
59
60
| ``destination(m); ``| unspecified| Retrieve the destination of ``m ``.|
60
61
+----------------------------+----------------------+-----------------------------------------+
61
- | ``headers(m); ``| ``Range<Pair<S,S>> ``| Get the range of headers of ``m ``.|
62
+ | ``headers(m); ``| unspecified| Get the range of headers of ``m ``. The|
63
+ | | | result should be convertible to ``H ``|
62
64
+----------------------------+----------------------+-----------------------------------------+
63
65
| ``body(m); ``| unspecified| Retrieve the body of ``m ``.|
64
66
+----------------------------+----------------------+-----------------------------------------+
65
67
| ``m << source(s); ``| ``M & ``| Set the source of ``m ``.|
66
68
+----------------------------+----------------------+-----------------------------------------+
69
+ | ``source(m,s); ``| ``M & ``| Set the source of ``m ``.|
70
+ +----------------------------+----------------------+-----------------------------------------+
67
71
| ``m << destination(s); ``| ``M & ``| Set the destination of ``m ``.|
68
72
+----------------------------+----------------------+-----------------------------------------+
73
+ | ``destination(m,s); ``| ``M & ``| Set the destination of ``m ``.|
74
+ +----------------------------+----------------------+-----------------------------------------+
69
75
| ``m << header(k, v); ``| ``M & ``| Add a header to ``m ``.|
70
76
+----------------------------+----------------------+-----------------------------------------+
77
+ | ``add_header(m, k, v); ``| ``M & ``| Add a header to ``m ``.|
78
+ +----------------------------+----------------------+-----------------------------------------+
71
79
| ``m << remove_header(k); ``| ``M & ``| Remove a header from ``m ``.|
72
80
+----------------------------+----------------------+-----------------------------------------+
81
+ | ``remove_header(m, k); ``| ``M & ``| Remove a header from ``m ``.|
82
+ +----------------------------+----------------------+-----------------------------------------+
73
83
| ``m << body(s); ``| ``M & ``| Set the body of ``m ``.|
74
84
+----------------------------+----------------------+-----------------------------------------+
85
+ | ``body(m,s); ``| ``M & ``| Set the body of ``m ``.|
86
+ +----------------------------+----------------------+-----------------------------------------+
75
87
76
88
Types that model the Message Concept are meant to encapsulate data
77
89
that has a source, a destination, one or more named headers, and a