Skip to content

Commit 1bbe1e2

Browse files
authored
feat(header): add request sent timestamp (#111)
Optional header containing a Unix timestamp in milliseconds representing the point-in-time the request was sent. This header can be used to measure latency.
1 parent 93bbf61 commit 1bbe1e2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

apis/builder/header.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@ get:
3232
description: The validator's BLS public key.
3333
schema:
3434
$ref: "../../builder-oapi.yaml#/components/schemas/Pubkey"
35+
- name: Date-Milliseconds
36+
in: header
37+
required: false
38+
description: |
39+
Optional header containing a Unix timestamp in milliseconds representing
40+
the point-in-time the request was sent. This header can be used to measure
41+
latency.
42+
schema:
43+
type: integer
44+
format: int64
45+
example: 1710338135000
3546
responses:
3647
"200":
3748
description: Success response.

0 commit comments

Comments
 (0)