sdroege / rtsp-types

RTSP (RFC 7826) types and parsers/serializers
MIT License
26 stars 13 forks source link

Add specific types for well-known headers #2

Closed sdroege closed 3 years ago

sdroege commented 3 years ago

The API could be similar to e.g. https://docs.rs/http-types/2.7.0/http_types/cache/struct.Age.html plus a way to set the header inside an AsMut<Headers> (we don't need a trait for that).

sdroege commented 3 years ago

The RTP-Info and Transport headers would be good candidates as they're quite complicated, but even something like CSeq could be useful so that the integer<->string conversions could be done in a single place.

sdroege commented 3 years ago

There are many now, let's close this