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
mediaType MediaType  
status number required int
language string  
statusInfo StatusType  
date number  
metadata map of array of object  
closed boolean required boolean
entityTag EntityTag  
location string  
entity object  
headers map of array of object  
length number required int
links array of Link  
stringHeaders map of array of string  
lastModified number  
cookies map of NewCookie  
allowedMethods array of string  

Example

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