get_content_type.Rd
Retrieve or test content type of a HAR request object
get_content_type(har_resp_obj) is_content_type(har_resp_obj, type = "application/json") is_json(har_resp_obj) is_xml(har_resp_obj) is_css(har_resp_obj) is_plain(har_resp_obj) is_binary(har_resp_obj) is_javascript(har_resp_obj) is_html(har_resp_obj) is_jpeg(har_resp_obj) is_png(har_resp_obj) is_svg(har_resp_obj) is_gif(har_resp_obj) is_xhr(har_resp_obj)
har_resp_obj | a reponse object from [render_har()] or [execute_lua()] |
---|---|
type | content type to compare to (default: " |
Other splash_har_helpers:
get_content_size()
,
get_har_entry()
,
get_header_val()
,
get_headers()
,
get_request_type()
,
get_request_url()
,
get_response_body()
,
get_response_url()
,
har_entry_count()