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

Example

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