chris-morgan / rust-http

Completely OBSOLETE Rust HTTP library (server and client)
Other
390 stars 110 forks source link

Convert TmFmt from strftime to String. Fixes #170 #171

Closed Ogeon closed 9 years ago

Ogeon commented 9 years ago

Not the nicest, but it gets the job done. The whole system would probably benefit from being able to return errors, but that's for an other time.

reem commented 9 years ago

We could just return TmFmt, which then gives users control over allocation.

Ogeon commented 9 years ago

I don't know. This is in a trait method wihich is used to convert things to header values. It may be better to interface with the Show trait and format the string "on the fly". Alternatively just leave it as it is and let this library die in peace.