James M Snell wrote:
== Proposal ==
{{{
8.5 Slug: Header
When posting a resource to a collection in order to add a new member, a
client MAY include a Slug request header. This constitutes a request by
the client that the URI assigned to the new resource incorporate the
string provided in the value of the Slug header. Server implementations
MAY attempt to comply with the request. The syntax of this header MUST
conform to the isegment-nz construct as defined in Section 2.2 of
[RFC3987]. The value MAY contain characters from character sets other
than [ISO88591] only when encoded according to the rules of [RFC2047].
For example,
POST /myblog/fotes HTTP/1.1
Host: example.org
Content- Type: image/png
Content- Length: nnnn
Slug: a-picture-of-my-house
...binary data...
}}}
+1 to this.
I implemented this in my protocol implementation as an optional feature
and I find it very useful. If I'm uploading a file, I can automatically
generate that header and the user will probably get what they expect.
I am somewhat baffled at the origin of the header name 'Slug' but the
name doesn't bother me.
--Alex Milowski