jina
jina copied to clipboard
How to set GET method?
This is default POST method, But how can I set it's a GET method?
Hey @xuhaoguang ,
You do not need to set it, Jina detects that there is a generator being returned and because of that exposes a GET endpoint when served via HTTP.
ehh, But how can I use curl "localhost:12345/hc" to health_check method, but when I test, jina say I should send a json post data and Method Not Allowed
how are u defining this hc endpoint?
@xuhaoguang Did you find any workaround? I'm struggling with same.
@that-rahul-guy what are you trying to do?
Hi @JoanFM I am currently exploring jina as a framework to serve my LangChain Agent-tool architecture application. As for the GET method I was trying a similar thing what @xuhaoguang shared.
Hey @xuhaoguang, which folder is that file in?
@jina-ai/product This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days
@jina-ai/product This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days