You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 18, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 18, 2019. It is now read-only.
I've noticed that coreapi uses requests to handle all of the http requests, but it doesn't seem like there is an easy way to access this for client.get and client.action.
Any idea how I can set a timeout for this? Much obliged!
Hmmm, not a bad idea Tom, for now I'll provide a custom Requests Session to the client.
Granted, I'm using coreapi for a variety of users with a pre-instantiated coreapi.Client and I don't want them to share the same Session to prevent contamination...any suggestions on instantiating? Much obliged!
Not quite sure what you mean. I'd guess you could instantiate a different client for each user, or have a custom session instance that delegates the send to different sub instances depending on the user credentials. (Sounds more complicated than you probably actually need.)
Activity
lovelydinosaur commentedon Feb 14, 2018
It'd make sense to build this in, yup.
Is it possible to set the timeout on the
Session? (You can provide a custom session to the client)dkvdm commentedon Feb 15, 2018
Hmmm, not a bad idea Tom, for now I'll provide a custom Requests Session to the client.
Granted, I'm using coreapi for a variety of users with a pre-instantiated
coreapi.Clientand I don't want them to share the same Session to prevent contamination...any suggestions on instantiating? Much obliged!lovelydinosaur commentedon Feb 15, 2018
Not quite sure what you mean. I'd guess you could instantiate a different client for each user, or have a custom session instance that delegates the
sendto different sub instances depending on the user credentials. (Sounds more complicated than you probably actually need.)