FHIRJSONRequestHandler

open class FHIRJSONRequestHandler: FHIRBaseRequestHandler

Prepare and handle a request returning JSON data.

JSON body data can be greated from the resource, if the receiver holds on to one. The header’s content type for PUT and POST will be set to application/fhir+json; charset=utf-8 no matter what.

  • Undocumented

    Declaration

    Swift

    open class FHIRJSONRequestHandler: FHIRBaseRequestHandler
  • Prepare and handle a request returning JSON data.

    JSON body data can be greated from the resource, if the receiver holds on to one. The header’s content type for PUT and POST will be set to application/fhir+json; charset=utf-8 no matter what.

    Declaration

    Swift

    override open func prepareData() throws
  • Declaration

    Swift

    override open func prepare(request: inout URLRequest) throws
  • Instantiate a FHIRServerResponse based on the response and data that we get.

    Declaration

    Swift

    override open func response(response: URLResponse?, data inData: Data? = nil, error: Error? = nil) -> FHIRServerResponse