A group of elements to support intercepting ajax requests for injecting headers, url rewriting or handling responses globally.
An implementation of mtz-ajax-interceptor-behavior
useful for quick implementations, ie. demos. This allows other interceptors to be slotted in.
An implementation of the mtz.InterceptorBehavior that injects auth headers based on the event.target containing the [with-auth] attribute.
An implementation of the mtz.InterceptorBehavior that globally sets the withCredentials option based on the local withCredentials
property.
An implementation of the mtz.InterceptorBehavior that injects a header:value onto a presend event for iron-ajax.
An implementation of the mtz.InterceptorBehavior that compares a status property against the status code in the event to determine if the interceptor logic should run or not.
An implementation of the mtz.InterceptorBehavior that rewrites matching requests request url to a new url onto a presend event for iron-ajax.
Handles registering declarative interceptors then listening for all registered events and calling the interceptors associated with those events.
Used to create an instance of an interceptor that allows for declarative registration for binding logic to a bubbling event that is not a child of the element.
First, make sure you have the Polymer CLI installed. Then run polymer serve
to serve your element locally.
$ polymer serve
$ polymer test
Your application is already set up to be tested via web-component-tester. Run polymer test
to run your application's test suite locally.