Skip to content

Mojo::UserAgent logging request/response to file #2060

Answered by jberger
hussam-qasem asked this question in Q&A
Discussion options

You must be logged in to vote

Look in here for the DEBUG constant: https://github.com/mojolicious/mojo/blob/main/lib/Mojo/UserAgent.pm

Probably you just need to subscribe to the read and write events of the underlying socket like it does

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@hussam-qasem
Comment options

@guest20
Comment options

Comment options

You must be logged in to vote
3 replies
@hussam-qasem
Comment options

@jberger
Comment options

@jberger
Comment options

Answer selected by hussam-qasem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants