# circuits 2.1.0 documentation

# `circuits.web.wrappers` – Request/Response Objects

## Events

none

## Classes

class `circuits.web.wrappers.``Body`

  Bases: `object`

  Response Body

class `circuits.web.wrappers.``Host`(ip, port, name=None)

  Bases: `object`

  An internet address.

  name should be the client’s host name. If not available (because no DNS lookup is performed), the IP address should be used instead.

class `circuits.web.wrappers.``Request`(sock, method, scheme, path, protocol, qs)

  Bases: `object`

  Creates a new Request object to hold information about a request.

  Parameters: | sock (socket.socket) – The socket object of the request. method (str) – The requsted method. scheme (str) – The requsted scheme. path (str) – The requsted path. protocol (str) – The requsted protocol. qs (str) – The query string of the request.

  initializes x; see x.__class__.__doc__ for signature

  `server` = None

    @cvar: A reference to the underlying server

class `circuits.web.wrappers.``Response`(request, encoding='utf-8', code=None, message=None)

  Bases: `object`

  Response(sock, request) -> new Response object

  A Response object that holds the response to send back to the client. This ensure that the correct data is sent in the correct order.

  initializes x; see x.__class__.__doc__ for signature

## Components

none

## Functions

`circuits.web.wrappers.``file_generator`(input, chunkSize=4096)