Public Instance Methods : SstHttpHeader
at: field
"ACTION
Answer the header attribute named @field. Answer nil if no such
attribute was included in the header. Note that @field is
case-insensitive.
RETURN VALUE
<String> | nil"
Categories
SST-API Developer
at: field add: newValue
"ACTION
Cause @value to be associated with the header attribute @field,
along with any other values currently associated. This means that
@field will be a list of elements (a multi-field). Answer @newValue.
Note that @field is case-insensitive.
PARAMETERS
field : <String>
value : <String>
RETURN VALUE
<String>"
Categories
SST-API Developer
at: field ifAbsent: absentBlock
"ACTION
Answer the header attribute named @field. Answer the result of
evaluating @absentBlock if no such attribute was included in the
header. Note that @field is case-insensitive.
RETURN VALUE
<String> | <Object>"
Categories
SST-API Developer
at: field put: value
"ACTION
Cause @value to be associated with the header attribute @field.
Answer @value. Note that @field is case-insensitive.
PARAMETERS
field : <String>
value : <String>
RETURN VALUE
<String>"
Categories
SST-API Developer
contentLength
"ACTION
Answer the content-length attribute from the header as an integer.
If the attribute was not found then answer 0.
RETURN VALUE
<Integer>"
Categories
SST-API Developer
contentLength: value
"ACTION
Set the Content-Length: field. @value should be a number. If the content
length is nil or -ve, then no content length attribute will be generated.
PARAMETERS
value : <Integer> | nil"
Categories
SST-API Developer
contentType
"ACTION
Answer the Content-Type attribute for the receiver.
Answer nil if there was no content-type.
RETURN VALUE
<String> | nil"
Categories
SST-API Developer
contentType: type
"ACTION
Set the content-type attribute of the receiver to @type.
PARAMETERS
type : <String>"
Categories
SST-API Developer
keysAndValuesDo: block
"ACTION
Evaluate @block with each header attribute name and value.
PARAMETERS
block : <Block>"
Categories
SST-API Developer
removeField: field ifAbsent: absentHandler
"ACTION
Remove and answer any value associated with the header attribute
@field in the receiver. If the attribute had no association then answer
the result of firing @absentHandler block. Note @field is case-insensitive.
PARAMETERS
field : <String>
absentHandler : <Block>
RETURN VALUE
<Object>"
Categories
SST-API Developer
version
"ACTION
Answer the version string with which this header is claiming compliance.
RETURN VALUE
<String>"
Categories
SST-API Developer
version: value
"ACTION
Set the HTTP version that this header is compliant with.
PARAMETERS
value : <String>"
Categories
SST-API Developer
[FIRST] [PREV] [NEXT] [LAST]