get_content_type: Retrieve or test content type of a HAR request object

Description Usage Arguments See Also

View source: R/helpers.r

Description

Retrieve or test content type of a HAR request object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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

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()


hrbrmstr/splashr documentation built on Feb. 23, 2020, 2:13 p.m.