FHIRBaseRequestHandler

open class FHIRBaseRequestHandler: FHIRRequestHandler

Base implementation of FHIRRequestHandler.

  • Add the given headers to the request, overwriting existing headers.

    Declaration

    Swift

    open func add(headers inHeaders: FHIRRequestHeaders)

    Parameters

    headers

    The headers to add to the receiver

  • Prepare body data for the request.

    Declaration

    Swift

    open func prepareData() throws
  • Give the request type a chance to prepare/alter the URL request.

    Typically the FHIRRequestMethod instance sets the correct HTTPMethod as well as correct FHIR headers. It will also inspect the options property and add appropriate query params.

    Declaration

    Swift

    open func prepare(request: inout URLRequest) throws