Skip to content

Commit 490dbde

Browse files
griffe
1 parent 0669cbd commit 490dbde

237 files changed

Lines changed: 3421 additions & 61658 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/english/reference/adapter/aiohttp/index.md

Lines changed: 0 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -3,121 +3,6 @@ sidebar_label: aiohttp
33
title: slack_bolt.adapter.aiohttp
44
---
55

6-
## AsyncBoltRequest Objects
7-
8-
```python
9-
class AsyncBoltRequest()
10-
```
11-
12-
#### raw\_body: `str`
13-
14-
#### body: `Dict[str, Any]`
15-
16-
The raw request body (only plain text is supported for "http" mode)
17-
18-
#### query: `Dict[str, Sequence[str]]`
19-
20-
The query string data in any data format.
21-
22-
#### headers: `Dict[str, Sequence[str]]`
23-
24-
The request headers.
25-
26-
#### content\_type: `Optional[str]`
27-
28-
#### context: `AsyncBoltContext`
29-
30-
The context in this request.
31-
32-
#### lazy\_only: `bool`
33-
34-
#### lazy\_function\_name: `Optional[str]`
35-
36-
#### mode: `str`
37-
38-
The mode used for this request. (either "http" or "socket_mode")
39-
40-
#### \_\_init\_\_
41-
42-
```python
43-
def __init__(*,
44-
body: Union[str, dict],
45-
query: Optional[Union[str, Dict[str, str],
46-
Dict[str, Sequence[str]]]] = None,
47-
headers: Optional[Dict[str, Union[str, Sequence[str]]]] = None,
48-
context: Optional[Dict[str, Any]] = None,
49-
mode: str = "http")
50-
```
51-
52-
Request to a Bolt app.
53-
54-
**Arguments**:
55-
56-
- `body` - The raw request body (only plain text is supported for "http" mode)
57-
- `query` - The query string data in any data format.
58-
- `headers` - The request headers.
59-
- `context` - The context in this request.
60-
- `mode` - The mode used for this request. (either "http" or "socket_mode")
61-
62-
#### to\_copyable
63-
64-
```python
65-
def to_copyable() -> "AsyncBoltRequest"
66-
```
67-
68-
## BoltResponse Objects
69-
70-
```python
71-
class BoltResponse()
72-
```
73-
74-
#### status: `int`
75-
76-
HTTP status code
77-
78-
#### body: `str`
79-
80-
The response body (dict and str are supported)
81-
82-
#### headers: `Dict[str, Sequence[str]]`
83-
84-
The response headers.
85-
86-
#### \_\_init\_\_
87-
88-
```python
89-
def __init__(*,
90-
status: int,
91-
body: Union[str, dict] = "",
92-
headers: Optional[Dict[str, Union[str, Sequence[str]]]] = None)
93-
```
94-
95-
The response from a Bolt app.
96-
97-
**Arguments**:
98-
99-
- `status` - HTTP status code
100-
- `body` - The response body (dict and str are supported)
101-
- `headers` - The response headers.
102-
103-
#### first\_headers
104-
105-
```python
106-
def first_headers() -> Dict[str, str]
107-
```
108-
109-
#### first\_headers\_without\_set\_cookie
110-
111-
```python
112-
def first_headers_without_set_cookie() -> Dict[str, str]
113-
```
114-
115-
#### cookies
116-
117-
```python
118-
def cookies() -> Sequence[SimpleCookie]
119-
```
120-
1216
#### to\_bolt\_request
1227

1238
```python
@@ -129,4 +14,3 @@ async def to_bolt_request(request: web.Request) -> AsyncBoltRequest
12914
```python
13015
async def to_aiohttp_response(bolt_resp: BoltResponse) -> web.Response
13116
```
132-

0 commit comments

Comments
 (0)