## CompactClient


A client with 8 methods (stays inline since 8 \<= 10).


Usage


``` python
CompactClient(host)
```


## Parameters


`host: str`  
The server hostname.


## Methods

| Name | Description |
|----|----|
| [close()](#close) | Close the client connection. |
| [delete()](#delete) | Send a DELETE request. |
| [get()](#get) | Send a GET request. |
| [head()](#head) | Send a HEAD request. |
| [options()](#options) | Send an OPTIONS request. |
| [patch()](#patch) | Send a PATCH request. |
| [post()](#post) | Send a POST request. |
| [put()](#put) | Send a PUT request. |

------------------------------------------------------------------------


#### close()


Close the client connection.


Usage


``` python
close()
```


------------------------------------------------------------------------


#### delete()


Send a DELETE request.


Usage


``` python
delete(path)
```


##### Parameters


`path: str`  
Request path.


##### Returns


`bool`  
True if successful.


------------------------------------------------------------------------


#### get()


Send a GET request.


Usage


``` python
get(path)
```


##### Parameters


`path: str`  
Request path.


##### Returns


`dict`  
Response payload.


------------------------------------------------------------------------


#### head()


Send a HEAD request.


Usage


``` python
head(path)
```


##### Parameters


`path: str`  
Request path.


##### Returns


`dict`  
Response headers.


------------------------------------------------------------------------


#### options()


Send an OPTIONS request.


Usage


``` python
options(path)
```


##### Parameters


`path: str`  
Request path.


##### Returns


`list`  
Allowed methods.


------------------------------------------------------------------------


#### patch()


Send a PATCH request.


Usage


``` python
patch(path, body)
```


##### Parameters


`path: str`  
Request path.

`body: dict`  
Partial update payload.


##### Returns


`dict`  
Response payload.


------------------------------------------------------------------------


#### post()


Send a POST request.


Usage


``` python
post(path, body)
```


##### Parameters


`path: str`  
Request path.

`body: dict`  
Request body.


##### Returns


`dict`  
Response payload.


------------------------------------------------------------------------


#### put()


Send a PUT request.


Usage


``` python
put(path, body)
```


##### Parameters


`path: str`  
Request path.

`body: dict`  
Request body.


##### Returns


`dict`  
Response payload.
