🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
OCLOperators RestHead
Created by Vale.buyondo on 2026-03-02 · Last edited by Vale.buyondo on 2026-03-02.

RestHead performs an HTTP HEAD request to a URL. It is identical to RestGet except the server returns only the response headers not the body. This makes it useful for:

  • Checking if a resource exists (via status code)
  • Reading metadata like Content-Length, Content-Type, Last-Modified
  • Verifying API availability without downloading data
  • Checking authentication before making a full request

How It Works in MDriven

Like all Rest operators in MDriven, RestHead is available on the selfVM variable and is used inside an EAL action on a ViewModel.

Syntax

selfVM.RestHead('https://yourapi.com/endpoint','','','YourNestingName')