Skip to content

time: add http_header_string() for HTTP date/time stamps#20861

Merged
spytheman merged 1 commit intovlang:masterfrom
davlgd:davlgd-http-header-datetime
Feb 18, 2024
Merged

time: add http_header_string() for HTTP date/time stamps#20861
spytheman merged 1 commit intovlang:masterfrom
davlgd:davlgd-http-header-datetime

Conversation

@davlgd
Copy link
Copy Markdown
Contributor

@davlgd davlgd commented Feb 17, 2024

This adds a UNIX time stamp to HTTP date/time stamp as defined in RFC2616, which should be used in HTTP headers such as Expires, Last-Modified, etc.

A test has been added to vlib/time/time_format_test.v to cover this new function.

@JalonSolov
Copy link
Copy Markdown
Collaborator

JalonSolov commented Feb 18, 2024

Missing doc comment for the new function.

See https://github.com/vlang/v/blob/master/doc/docs.md#writing-documentation

Add a unix time stamp to HTTP date/time stamps as defined in [RFC2616](https://www.rfc-editor.org/rfc/rfc2616#section-3.3.1), which should be used in HTTP headers such as `Expires`, `Last-Modified`, etc.
@davlgd
Copy link
Copy Markdown
Contributor Author

davlgd commented Feb 18, 2024

Sorry for that, it's been added

@spytheman spytheman merged commit 38cf923 into vlang:master Feb 18, 2024
@davlgd davlgd deleted the davlgd-http-header-datetime branch February 18, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants