Skip to content

Conversation

liuyigh
Copy link

@liuyigh liuyigh commented Jul 25, 2018

Hi, I am first time splash and Lua user. I benefited from examples in the reference. But there was no reference for the on_response callback. I'd like to share my example.

It is useful to record certain response body only when requested url match a pattern.

The example demos on_request, request:enable_response_body, and on_response.

Thank you for considering. Feel free to revise it.

Best, Yi

only when requested url match a pattern
@codecov
Copy link

codecov bot commented Jul 25, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@3cba485). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #796   +/-   ##
=========================================
  Coverage          ?   87.49%           
=========================================
  Files             ?       41           
  Lines             ?     5645           
  Branches          ?      778           
=========================================
  Hits              ?     4939           
  Misses            ?      531           
  Partials          ?      175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant