Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger based on HTTP response header value #39

Open
jmoses opened this issue May 13, 2021 · 0 comments
Open

Trigger based on HTTP response header value #39

jmoses opened this issue May 13, 2021 · 0 comments

Comments

@jmoses
Copy link

jmoses commented May 13, 2021

Feature Request

It would be nice if you could trigger based on an http response header value, similar to the TextContent regex matching.

For example

> http options https://xxx
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: X-Requested-With,Content-Type,Authorization
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Encoding: gzip
Content-Security-Policy: frame-ancestors 'none'
Date: Thu, 13 May 2021 18:27:38 GMT
Keep-Alive: timeout=5
My-Header: value

When the my-header header value changes, trigger.

The use for this, in my case, is checking if a version of a service (eg: an api) has changed, and queuing a test job against it. Ideally you could have control over the HTTP method, but at least the status code should be able to be ignored while still checking the header (eg: the api endpoint is a POST and returns an error code, but also the header still).

I'm happy to branch and submit this as a PR, but I would need some basic direction as to where something like that would fit into the current code. There's checking already for some specific header values (etag, last-modified) that looks like it would be a pattern to follow.

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

No branches or pull requests

1 participant