Skip to content

Commit

Permalink
Add more headers
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin67 committed Nov 23, 2023
1 parent 3887de9 commit 3151746
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/inngest/headers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ defmodule Inngest.Headers do
Header values used by the SDK
"""

def env, do: "X-Inngest-Env"
def forwarded_for, do: "X-Forwarded-For"
def framework, do: "X-Inngest-Framework"
def no_retry, do: "X-Inngest-No-Retry"
def platform, do: "X-Inngest-Platform"
def sdk, do: "X-Inngest-SDK"
def signature, do: "X-Inngest-Signature"
def server_kind, do: "X-Inngest-Server-Kind"
def req_version, do: "X-Inngest-Req-Version"
def server_timing, do: "Server-Timing"

Check warning on line 14 in lib/inngest/headers.ex

View check run for this annotation

Codecov / codecov/patch

lib/inngest/headers.ex#L6-L14

Added lines #L6 - L14 were not covered by tests

# Retries
def no_retry, do: "X-Inngest-No-Retry"
def retry_after, do: "Retry-After"

Check warning on line 18 in lib/inngest/headers.ex

View check run for this annotation

Codecov / codecov/patch

lib/inngest/headers.ex#L17-L18

Added lines #L17 - L18 were not covered by tests
end

0 comments on commit 3151746

Please sign in to comment.