Closed mio256 closed 8 months ago
mio256@mio256: ~/2024-CC-A/back back/ping!
$ python3 [11:17:28]
Python 3.11.7 (main, Dec 4 2023, 18:10:11) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> baseurl = 'http://localhost:8080'
>>> requests.get(baseurl+'/ping')
<Response [200]>
>>> requests.get(baseurl+'/ping').content
b'{"content":"pong"}'
https://ogen.dev/