python-lapidary/lapidary

Support returning response headers, cookies and links

rafalkrupinski opened this issue · 0 comments

Allow declaring the return type as tuple with zero or more of:

  • Headers
  • Cookies (CookieJar)
  • Links
  • response body model

if the return type is a tuple, a tuple is returned.
If any of the first three types are in that tuple, they're filled from the response headers.
If another type is added (possibly limited to subclasses of pydantic.BaseModel), use the type to parse the request body.