HttpLibAdapaterRegistry: HttpLibAdapaterRegistry

HttpLibAdapaterRegistryR Documentation

HttpLibAdapaterRegistry

Description

http lib adapter registry

Public fields

adapters

list

Methods

Public methods


Method print()

print method for the HttpLibAdapaterRegistry class

Usage
HttpLibAdapaterRegistry$print(x, ...)
Arguments
x

self

...

ignored


Method register()

Register an http library adapter

Usage
HttpLibAdapaterRegistry$register(x)
Arguments
x

an http lib adapter, e.g., CrulAdapter

Returns

nothing, registers the library adapter


Method clone()

The objects of this class are cloneable with this method.

Usage
HttpLibAdapaterRegistry$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

x <- HttpLibAdapaterRegistry$new()
x$register(CrulAdapter$new())
x
x$adapters
x$adapters[[1]]$name

webmockr documentation built on Aug. 29, 2022, 1:07 a.m.