Skip to content

ishikawa/plug_hackney_trace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlugHackneyTrace

A plug to enable hackney_trace in hackney.

With this plug, you can easily enable hackney_trace for your desired controller or the specific action. Furthermore, this plug automatically handles the output of hackney_trace and convert it into Elixir String. You can log it or handle by your own function.

Installation

If available in Hex, the package can be installed by adding plug_hackney_trace to your list of dependencies in mix.exs:

def deps do
  [
    {:plug_hackney_trace, "~> 0.1.0"}
  ]
end

To use it, just plug it into the desired module.

plug PlugHackneyTrace, trace: :min

In a Phoenix powered project, you can plug it into a specific action.

plug PlugHackneyTrace when action in [:show]

License

See LICENSE file.

About

A plug to enable hackney_trace

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages