Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (20 sloc) 728 Bytes
<?xml version="1.0" encoding="UTF-8" ?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<sampleQuery>select * from {table} where url="http://developer.yahoo.com/"</sampleQuery>
<description>Retrieve HTTP status for URLs</description>
<author>Peter Cowburn</author>
</meta>
<bindings>
<select itemPath="result" produces="JSON">
<inputs>
<key id="url" type="xs:string" paramType="variable" required="true"/>
</inputs>
<execute><![CDATA[
// y.rest().head() is available as of b17991! :-)
var results = y.rest(url).head();
response.object = {url: results.url, status: results.status, headers: results.headers};
]]></execute>
</select>
</bindings>
</table>