D4Science D4Science Don't have a D4Science account? Create one Could not find what you are looking for? Contact us.

Response Data Type

Abstract Type
Properties
name data type constraints description
allowedMethods array of string  
statusInfo StatusType  
cookies map of NewCookie  
links array of Link  
mediaType MediaType  
entity object  
headers map of array of object  
metadata map of array of object  
lastModified number  
language string  
status number required int
length number required int
closed boolean required boolean
stringHeaders map of array of string  
date number  
location string  
entityTag EntityTag  

Example

{
  "allowedMethods" : [ "...", "..." ],
  "statusInfo" : {
    "statusCode" : 12345,
    "reasonPhrase" : "...",
    "family" : "INFORMATIONAL"
  },
  "cookies" : {
    "property1" : {
      "sameSite" : "STRICT",
      "httpOnly" : true,
      "comment" : "...",
      "maxAge" : 12345,
      "expiry" : 12345,
      "secure" : true,
      "value" : "...",
      "version" : 12345,
      "name" : "...",
      "path" : "...",
      "domain" : "..."
    },
    "property2" : {
      "sameSite" : "LAX",
      "httpOnly" : true,
      "comment" : "...",
      "maxAge" : 12345,
      "expiry" : 12345,
      "secure" : true,
      "value" : "...",
      "version" : 12345,
      "name" : "...",
      "path" : "...",
      "domain" : "..."
    }
  },
  "links" : [ {
    "title" : "...",
    "rel" : "...",
    "rels" : [ "...", "..." ],
    "params" : {
      "property1" : "...",
      "property2" : "..."
    },
    "uri" : "...",
    "type" : "...",
    "uriBuilder" : { }
  }, {
    "title" : "...",
    "rel" : "...",
    "rels" : [ "...", "..." ],
    "params" : {
      "property1" : "...",
      "property2" : "..."
    },
    "uri" : "...",
    "type" : "...",
    "uriBuilder" : { }
  } ],
  "mediaType" : {
    "wildcardType" : true,
    "wildcardSubtype" : true,
    "type" : "...",
    "subtype" : "...",
    "parameters" : {
      "property1" : "...",
      "property2" : "..."
    }
  },
  "entity" : { },
  "headers" : {
    "property1" : [ { }, { } ],
    "property2" : [ { }, { } ]
  },
  "metadata" : {
    "property1" : [ { }, { } ],
    "property2" : [ { }, { } ]
  },
  "lastModified" : 12345,
  "language" : "...",
  "status" : 12345,
  "length" : 12345,
  "closed" : true,
  "stringHeaders" : {
    "property1" : [ "...", "..." ],
    "property2" : [ "...", "..." ]
  },
  "date" : 12345,
  "location" : "...",
  "entityTag" : {
    "value" : "...",
    "weak" : true
  }
}