Open s3rj1k opened 2 months ago
Do you mind elaborating on the reason? What is the use case?
Do you mind elaborating on the reason? What is the use case?
I was working on TTL based cache for Tx, so having timestamp from actual transaction could benefit by reducing addition calls to time.Now()
for getting same information.
@s3rj1k this is a legit use case, do you have any code you could share for such a thing?
Same answer as before, code is not available sadly.
Consider exposing Timestamp https://github.com/corazawaf/coraza/blob/main/internal/corazawaf/transaction.go#L116 in types.Transaction interface.