def handle_pack(pack_type)
      @pack_type = pack_type
      unless request.content_type == "application/x-#{@pack_type}-request" &&
             valid_pack_type? && authorized?
        return no_access
      end

      headers = {'Content-Type' => "application/x-#{@pack_type}-result"}
      exchange_pack(headers, request_io_in)
    end
def handle_pack(pack_type)
      @pack_type = pack_type
      unless request.content_type == "application/x-#{@pack_type}-request" &&
             valid_pack_type? && authorized?
        return no_access
      end

      headers = {'Content-Type' => "application/x-#{@pack_type}-result"}
      exchange_pack(headers, request_io_in)
    end
Processes pack file exchange requests for both push and pull.  Ensures
 that the request is allowed and properly formatted.

 @param [String] pack_type the type of pack exchange to perform per the
   request.

 @return a Rack response object.