pyrestsdk.clientfactory package

Module contents

Client Factories

class pyrestsdk.clientfactory.AbstractHTTPClientFactory(session: Session)[source]

Bases: ABC

Abstract HTTP Client Factory Type

abstract create_with_custom_middleware(middleware: B) Session[source]

Applies the custom middleware chain to the HTTP Client

abstract create_with_default_middleware(credential: C) Session[source]

Applies the default middleware chain to the HTTP Client

session: Session
class pyrestsdk.clientfactory.HTTPClientFactory(session: Session)[source]

Bases: AbstractHTTPClientFactory

HTTP Client Factory

create_with_custom_middleware(middleware: List[B]) Session[source]

Applies the custom middleware chain to the HTTP Client

create_with_default_middleware(credential: C) Session[source]

Applies the default middleware chain to the HTTP Client