/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSURLResponse.html is in gnustep-base-doc 1.24.7-1build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>NSURLResponse documentation</title>
</head>
<body>
<font face="serif">
<a href="Base.html">Up</a>
<br />
<h1><a name="title$NSURLResponse">NSURLResponse documentation</a></h1>
<h3>Authors</h3>
<dl>
<dt>Generated by root</dt>
<dd>
</dd>
</dl>
<div>
<hr width="50%" align="left" />
<h3>Contents -</h3>
<ol>
<li>
<a href="#001000000000">Software documentation for the NSHTTPURLResponse class</a>
</li>
<li>
<a href="#002000000000">Software documentation for the NSURLResponse class</a>
</li>
</ol>
<hr width="50%" align="left" />
</div>
<h1><a name="001000000000">
Software documentation for the NSHTTPURLResponse class
</a></h1>
<h2><a name="class$NSHTTPURLResponse">NSHTTPURLResponse</a> : <a rel="gsdoc" href="#class$NSURLResponse">NSURLResponse</a></h2>
<blockquote class="declared">
<dl>
<dt><b>Declared in:</b></dt>
<dd>Foundation/NSURLResponse.h</dd>
</dl>
</blockquote>
<div class="availability">
<b>Availability:</b> MacOS-X 10.2.0</div>
<br />
<div class="desc">
HTTP specific additions to an NSURLResponse
</div>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="NSURLResponse.html#method$NSHTTPURLResponse+localizedStringForStatusCode$">+localizedStringForStatusCode:</a></li>
<li><a rel="gsdoc" href="NSURLResponse.html#method$NSHTTPURLResponse-allHeaderFields">-allHeaderFields</a></li>
<li><a rel="gsdoc" href="NSURLResponse.html#method$NSHTTPURLResponse-statusCode">-statusCode</a></li>
</ul>
<hr width="50%" align="left" />
<div class="method">
<h3><a name="method$NSHTTPURLResponse+localizedStringForStatusCode$">localizedStringForStatusCode: </a></h3>
+ (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*) <b>localizedStringForStatusCode:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSInteger">NSInteger</a>)statusCode;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.2.0</div>
<br />
<div class="desc">
Returns a string representation of a status code.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSHTTPURLResponse-allHeaderFields">allHeaderFields </a></h3>
- (<a rel="gsdoc" href="NSDictionary.html#class$NSDictionary">NSDictionary</a>*) <b>allHeaderFields</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.2.0</div>
<br />
<div class="desc">
Returns a dictionary containing all the HTTP header
fields.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSHTTPURLResponse-statusCode">statusCode </a></h3>
- (<a rel="gsdoc" href="TypesAndConstants.html#type$NSInteger">NSInteger</a>) <b>statusCode</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.2.0</div>
<br />
<div class="desc">
Returns the HTTP status code for the response.
</div>
<hr width="25%" align="left" />
</div>
<h1><a name="002000000000">
Software documentation for the NSURLResponse class
</a></h1>
<h2><a name="class$NSURLResponse">NSURLResponse</a> : <a rel="gsdoc" href="NSObject.html#class$NSObject">NSObject</a></h2>
<blockquote class="declared">
<dl>
<dt><b>Declared in:</b></dt>
<dd>Foundation/NSURLResponse.h</dd>
</dl>
</blockquote>
<blockquote>
<dl>
<dt><b>Conforms to:</b></dt>
<dd><a rel="gsdoc" href="NSObject.html#protocol$(NSCoding)">NSCoding</a></dd>
<dd><a rel="gsdoc" href="NSObject.html#protocol$(NSCopying)">NSCopying</a></dd>
</dl>
</blockquote>
<div class="availability">
<b>Availability:</b> MacOS-X 10.2.0</div>
<br />
<div class="desc">
The response to an NSURLRequest
</div>
<hr width="50%" align="left" />
<a href="#_NSURLResponse_ivars">Instance Variables</a>
<br/><br/>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="NSURLResponse.html#method$NSURLResponse-MIMEType">-MIMEType</a></li>
<li><a rel="gsdoc" href="NSURLResponse.html#method$NSURLResponse-URL">-URL</a></li>
<li><a rel="gsdoc" href="NSURLResponse.html#method$NSURLResponse-expectedContentLength">-expectedContentLength</a></li>
<li><a rel="gsdoc" href="NSURLResponse.html#method$NSURLResponse-initWithURL$MIMEType$expectedContentLength$textEncodingName$">-initWithURL:MIMEType:expectedContentLength:textEncodingName:</a></li>
<li><a rel="gsdoc" href="NSURLResponse.html#method$NSURLResponse-initWithURL$statusCode$HTTPVersion$headerFields$">-initWithURL:statusCode:HTTPVersion:headerFields:</a></li>
<li><a rel="gsdoc" href="NSURLResponse.html#method$NSURLResponse-suggestedFilename">-suggestedFilename</a></li>
<li><a rel="gsdoc" href="NSURLResponse.html#method$NSURLResponse-textEncodingName">-textEncodingName</a></li>
</ul>
<hr width="50%" align="left" />
<div class="method">
<h3><a name="method$NSURLResponse-MIMEType">MIMEType </a></h3>
- (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*) <b>MIMEType</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.2.0</div>
<br />
<div class="desc">
Returns the receiver's MIME type.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSURLResponse-URL">URL </a></h3>
- (<a rel="gsdoc" href="NSURL.html#class$NSURL">NSURL</a>*) <b>URL</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.2.0</div>
<br />
<div class="desc">
Returns the receiver's URL.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSURLResponse-expectedContentLength">expectedContentLength </a></h3>
- (long long) <b>expectedContentLength</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.2.0</div>
<br />
<div class="desc">
Returns the expected content length of the receiver
or -1 if there is no idea of what the content length
might be. <br /> This value is advisory, not a
definitive length.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSURLResponse-initWithURL$MIMEType$expectedContentLength$textEncodingName$">initWithURL: MIMEType: expectedContentLength: textEncodingName: </a></h3>
- (id) <b>initWithURL:</b> (<a rel="gsdoc" href="NSURL.html#class$NSURL">NSURL</a>*)URL<b> MIMEType:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)MIMEType<b> expectedContentLength:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSInteger">NSInteger</a>)length<b> textEncodingName:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)name;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.2.0</div>
<br />
<div class="desc">
Initialises the receiver with the
<var>URL</var>, <var>MIMEType</var>, expected
<var>length</var> and text encoding <var>name</var>
provided.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSURLResponse-initWithURL$statusCode$HTTPVersion$headerFields$">initWithURL: statusCode: HTTPVersion: headerFields: </a></h3>
- (id) <b>initWithURL:</b> (<a rel="gsdoc" href="NSURL.html#class$NSURL">NSURL</a>*)URL<b> statusCode:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSInteger">NSInteger</a>)statusCode<b> HTTPVersion:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)HTTPVersion<b> headerFields:</b> (<a rel="gsdoc" href="NSDictionary.html#class$NSDictionary">NSDictionary</a>*)headerFields;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.7.0</div>
<br />
<div class="desc">
Initialises the receiver with the
<var>URL</var>, <var>statusCode</var>,
<var>HTTPVersion</var>, and <var>headerFields</var>
provided.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSURLResponse-suggestedFilename">suggestedFilename </a></h3>
- (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*) <b>suggestedFilename</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.2.0</div>
<br />
<div class="desc">
Returns a suggested file name for storing the
response data, with suggested names being found in
the following order: <br />
<ul>
<li>
content-disposition header
</li>
<li>
last path component of URL
</li>
<li>
host name from URL
</li>
<li>
'unknown'
</li>
</ul>
If possible, an extension based on the MIME type of the
response is also appended. <br /> The result
should always be a valid file name.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSURLResponse-textEncodingName">textEncodingName </a></h3>
- (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*) <b>textEncodingName</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.2.0</div>
<br />
<div class="desc">
Returns the name of the character set used where
response data is text
</div>
<hr width="25%" align="left" />
</div>
<a name="_NSURLResponse_ivars"/> <br/><hr width="50%" align="left" />
<h2>Instance Variables for NSURLResponse Class</h2>
<h3><a name="ivariable$NSURLResponse*_NSURLResponseInternal">_NSURLResponseInternal</a></h3>
@protected void* <b>_NSURLResponseInternal</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.2.0</div>
<br />
<div class="desc">
<em>Warning</em> the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically <em>private</em>, it is
intended for internal use within the package, and
you should not use the variable in other code.
</div>
<hr width="25%" align="left" />
<br/><hr width="50%" align="left" /><br/>
<br />
<a href="Base.html">Up</a>
</font>
</body>
</html>
|