httptest-package | 'httptest': A Test Environment for HTTP Requests |
.mockPaths | Set an alternate directory or directories for mock API fixtures |
buildMockURL | Convert a request to a mock file path |
capture_requests | Collect API Responses as Mock Files |
expect-verb | Expecations for mocked HTTP requests |
expect_DELETE | Expecations for mocked HTTP requests |
expect_GET | Expecations for mocked HTTP requests |
expect_header | Test that an HTTP request is made with a header |
expect_json_equivalent | Test that objects would generate equivalent JSON |
expect_no_request | Expecations for mocked HTTP requests |
expect_PATCH | Expecations for mocked HTTP requests |
expect_POST | Expecations for mocked HTTP requests |
expect_PUT | Expecations for mocked HTTP requests |
fakeResponse | Return something that looks enough like an httr 'response' |
httptest | 'httptest': A Test Environment for HTTP Requests |
public | Test that functions are exported |
redact | Remove sensitive content from HTTP responses |
redact_auth | Remove sensitive content from HTTP responses |
redact_cookies | Remove sensitive content from HTTP responses |
redact_headers | Remove sensitive content from HTTP responses |
redact_HTTP_auth | Remove sensitive content from HTTP responses |
redact_oauth | Remove sensitive content from HTTP responses |
skip_if_disconnected | Skip tests that need an internet connection if you don't have one |
start_capturing | Collect API Responses as Mock Files |
stop_capturing | Collect API Responses as Mock Files |
within_body_text | Remove sensitive content from HTTP responses |
without_internet | Make all HTTP requests raise an error |
with_fake_HTTP | Make all HTTP requests return a fake 'response' object |
with_mock_API | Serve a mock API from files |
with_trace | Wrapper around 'trace' to untrace when finished |