File: integration_testing.http

package info (click to toggle)
python-sse-starlette 2.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 944 kB
  • sloc: python: 1,487; makefile: 134; sh: 57
file content (29 lines) | stat: -rw-r--r-- 861 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
###

################################################################################
# subscribe to ./main_endless_conditional.py
################################################################################
GET http://localhost:8000/endless
Accept: application/json

###

################################################################################
# Test examples/stream_generator.py
################################################################################
# Push messages for stream_generator.py
# curl -X 'POST'
#  'http://127.0.0.1:8000/message?message=xxx'
#  -H 'accept: application/json'
#  -d ''
POST http://127.0.0.1:8000/message?message=xxx
accept: application/json
Content-Type: application/x-www-form-urlencoded

###

# subscribe to sse endpoint to view the sent messages
GET http://localhost:8000/sse
Accept: application/json

###