Learn R Programming

webmockr (version 2.0.0)

HttpLibAdapaterRegistry: HttpLibAdapaterRegistry

Description

http lib adapter registry

Arguments

Public fields

adapters

list

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

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

Run the code above in your browser using DataLab