You can inject RequestManager into your hook (assuming you're writing a hook). Then in your hook you could do something like this:
RequestContext requestContext = requestManager.getRequestContext();
if (requestContext != null && requestContext.getProtocol().startsWith("http")) {
....
}
Hi Matthew, I'm assuming you're using Bitbucket Server.
You can also see that from the access logs. If you need help on how to read the access logs, you can refer to How to read the bitbucket server log formats.
Hope that helps!
Ana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.