sdk.lusid.rest.RESTResponse

class RESTResponse(resp, data)[source]

Attributes

This is a Pydantic class. For now, click on the green [source] link in the class signature above to see descriptions/allowed values for these attributes.

closed

Methods

close

Flush and close the IO object.

fileno

Returns underlying file descriptor if one exists.

flush

Flush write buffers, if applicable.

getheader

Returns a given response header.

getheaders

Returns a CIMultiDictProxy of the response headers.

isatty

Return whether this is an 'interactive' stream.

readable

Return whether object was opened for reading.

readline

Read and return a line from the stream.

readlines

Return a list of lines from the stream.

seek

Change stream position.

seekable

Return whether object supports random access.

tell

Return current stream position.

truncate

Truncate file to size bytes.

writable

Return whether object was opened for writing.

writelines

Write a list of lines to stream.

getheader(name, default=None)[source]

Returns a given response header.

getheaders()[source]

Returns a CIMultiDictProxy of the response headers.