circuits.web.client – Client — circuits 2.1.0 documentation

# circuits 2.1.0 documentation

# `circuits.web.client` – Client

## Events

class `circuits.web.client.` `Request`(method, path, body=None, headers={})

  Bases: `circuits.core.events.Event`

  Request Event

  This Event is used to initiate a new request.

  Parameters: | method (str) – HTTP Method (PUT, GET, POST, DELETE) path (str) – Path to resource

## Components

class `circuits.web.client.` `Client`(url, channel='client')

  Bases: `circuits.core.components.BaseComponent`

  `channel` = 'client'
  `write`(data)
  `close`()
  `connect`(host=None, port=None, secure=None)
  `request`(method, path, body=None, headers={})
  `connected`
  `response`

## Functions