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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.