-
Notifications
You must be signed in to change notification settings - Fork 363
Global middleware #167
Copy link
Copy link
Closed
Labels
Description
Super useful, especially when using existing libraries like elixir-google-api
# global for all tesla-based clients
config :tesla, middleware: [MySuperMetrics]
# for specific client
config :tesla, GoogleApi.Datastore.V1.Connection, middleware: [MySuperMetrics]
# inserting middleware before/after stack
config :tesla, middleware: [
pre: [ModuleA],
post: [ModuleB]
]Reactions are currently unavailable