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)

Arguments

har_resp_obj

a reponse object from [render_har()] or [execute_lua()]

type

content type to compare to (default: "application/json")

See also