public protocol FHIRServer
Protocol for server objects to be used by
FHIRResource and subclasses.
A server object must always have a base URL.
var baseURL: URL
Designated initializer. Should make sure that the base URL ends with a
init(baseURL base: URL, auth: [String: Any]?)
Create a request handler with the given method and the given resource (if any).
The HTTP method type of the request
The resource to be involved in the request, if any
A request handler that can be used with the
Execute a request against a given relative URL with a given request/response handler.
The path, relative to the server’s base; may include URL query and URL fragment (!)
The FHIRRequestHandler that prepares the request and processes the response
The callback to execute; NOT guaranteed to be performed on the main thread!