com.github.vitalsoftware.scalaredox.client
Authorize to Redox and save the auth tokens
Send a query/read-request of type 'T' expecting a response of type 'U' Ex.
Send a query/read-request of type 'T' expecting a response of type 'U' Ex. get[PatientQuery => case ClinicalSummary](query)
Send a post/write-request of type 'T' expecting a response of type 'U' Ex.
Send a post/write-request of type 'T' expecting a response of type 'U' Ex. post[ClinicalSummary => case EmptyResponse](data)
Refresh and replace the auth token
Refresh the auth token a minute before it expires
Refresh the auth token a minute before it expires
Uploads a file to the Redox /uploads endpoint.
Uploads a file to the Redox /uploads endpoint. Provides sensible defaults for file content type and content length.
The file to upload to Redox.
The content type of the file (used when converting the file to a source stream. Defaults to 'text/plain'.
The length that will be used to set the 'content-length' on the request. Provides a default value of of ~2MB (2,097,000 octets). This is needed as when we provide a Source we have to manually set the length or the backend http client will chunk the request. (src: play.api.libs.ws.ahc.StandaloneAhcWSRequest#buildRequest() line: 303).
A future containing the redox upload response.
Created by apatzer on 3/20/17.