I'm looking at this page and I can't find what to import in order to get the request object that is often used in the code examples.
I figured that I can do this: import { superagent as request } from "superagent"; but the agent() method is missing. In its current from one can't determine from the documentation how to use the agent() in order to enable cookies.
I'm looking at this page and I can't find what to import in order to get the
request
object that is often used in the code examples.I figured that I can do this:
import { superagent as request } from "superagent";
but theagent()
method is missing. In its current from one can't determine from the documentation how to use theagent()
in order to enable cookies.