webmockr1.0.0 package

Stubbing and Setting Expectations on 'HTTP' Requests

build_httr2_response

Build a httr2 response (httr2_response)

enable

Enable or disable webmockr

mocking-disk-writing

Mocking writing to disk

pipe

Pipe operator

pluck_body

Extract the body from an HTTP request

remove_request_stub

Remove a request stub

Adapter

Adapters for Modifying HTTP Requests

BodyPattern

BodyPattern

build_crul_request

Build a crul request

build_crul_response

Build a crul response

build_httr_request

Build a httr request

build_httr_response

Build a httr response

build_httr2_request

Build an httr2 request

HashCounter

HashCounter

HeadersPattern

HeadersPattern

HttpLibAdapaterRegistry

HttpLibAdapaterRegistry

httr_mock

Turn on httr mocking

httr2_mock

Turn on httr2 mocking

MethodPattern

MethodPattern

mock_file

Mock file

stub_registry

List stubs in the stub registry

request_registry

List or clear requests in the request registry

RequestPattern

RequestPattern class

RequestRegistry

RequestRegistry

RequestSignature

RequestSignature

Response

Response

stub_registry_clear

stub_registry_clear

stub_request

Stub an http request

StubbedRequest

StubbedRequest

StubCounter

StubCounter

StubRegistry

StubRegistry

to_raise

Set raise error condition

to_return_-defunct

This function is defunct.

to_return

Expectation for what's returned from a stubbed request

to_timeout

Set timeout as an expected return on a match

UriPattern

UriPattern

webmockr_configure

webmockr configuration

webmockr_crul_fetch

execute a curl request

webmockr_disable-defunct

This function is defunct.

webmockr_enable-defunct

This function is defunct.

webmockr_reset

webmockr_reset

webmockr-defunct

Defunct functions in webmockr

webmockr-package

webmockr: Stubbing and Setting Expectations on 'HTTP' Requests

wi_th_-defunct

This function is defunct.

wi_th

Set additional parts of a stubbed request

Stubbing and setting expectations on 'HTTP' requests. Includes tools for stubbing 'HTTP' requests, including expected request conditions and response conditions. Match on 'HTTP' method, query parameters, request body, headers and more. Can be used for unit tests or outside of a testing context.

  • Maintainer: Scott Chamberlain
  • License: MIT + file LICENSE
  • Last published: 2024-07-23