![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /proc/self/root/usr/share/doc/gnustep-base-doc/Base/Reference/ |
Upload File : |
<?xml version="1.0"?> <!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.4//EN" "http://www.gnustep.org/gsdoc-1_0_4.dtd"> <gsdoc base="NSURLConnection" up="Base"> <head> <title>NSURLConnection class documentation</title> <author name="Generated by Debian"></author> </head> <body> <front><contents /></front> <chapter> <heading> Software documentation for the NSURLConnection class </heading> <class name="NSURLConnection" super="NSObject" ovadd="10.2.0" gvadd="1.13.0"> <declared>Foundation/NSURLConnection.h</declared> <desc> <em>Description forthcoming.</em> </desc> <ivariable type="void*" name="_NSURLConnectionInternal" validity="protected" ovadd="10.2.0" gvadd="1.13.0"> <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. </desc> </ivariable> <method type="BOOL" factory="yes" ovadd="10.2.0" gvadd="1.13.0"> <sel>canHandleRequest:</sel> <arg type="NSURLRequest*">request</arg> <desc> Performs a preliminary check to see if a load of the specified <var>request</var> can be handled by an instance of this class. <br /> The results of this method may be invalidated by subsequent changes to the <var>request</var> or changes to the registered protocols etc. </desc> </method> <method type="NSURLConnection*" factory="yes" ovadd="10.2.0" gvadd="1.13.0"> <sel>connectionWithRequest:</sel> <arg type="NSURLRequest*">request</arg> <sel>delegate:</sel> <arg type="id">delegate</arg> <desc> Allocates and returns the autoreleased instance which it initialises using the <ref type="method" id="-initWithRequest:delegate:"> -initWithRequest:delegate: </ref> method. </desc> </method> <method type="void" ovadd="10.2.0" gvadd="1.13.0"> <sel>cancel</sel> <desc> Cancel the asynchronous load in progress (if any) for this connection. </desc> </method> <method type="id" init="yes" ovadd="10.2.0" gvadd="1.13.0"> <sel>initWithRequest:</sel> <arg type="NSURLRequest*">request</arg> <sel>delegate:</sel> <arg type="id">delegate</arg> <desc> Initialises the receiver with the specified <var>request</var> (performing a deep copy so that the <var>request</var> does not change during loading) and <var>delegate</var>. <br /> This automatically initiates an asynchronous load for the <var>request</var>. <br /> Processing of the <var>request</var> is done in the thread which calls this method, so the thread must run its current run loop (in NSDefaultRunLoopMode) for processing to continue/complete. <br /> The <var>delegate</var> will receive callbacks informing it of the progress of the load. <br /> This method breaks with convention and retains the <var>delegate</var> object, releasing it when the connection finished loading, fails, or is cancelled. </desc> </method> </class> </chapter> <chapter> <heading> Software documentation for the NSObject(NSURLConnectionDelegate) category </heading> <category name="NSURLConnectionDelegate" class="NSObject" ovadd="10.7.0" gvadd="1.13.0"> <declared>Foundation/NSURLConnection.h</declared> <desc> <em>Description forthcoming.</em> </desc> <method type="void" ovadd="10.2.0" gvadd="1.13.0"> <sel>connection:</sel> <arg type="NSURLConnection*">connection</arg> <sel>didFailWithError:</sel> <arg type="NSError*">error</arg> <desc> <em>Description forthcoming.</em> </desc> </method> <method type="void" ovadd="10.2.0" gvadd="1.13.0"> <sel>connection:</sel> <arg type="NSURLConnection*">connection</arg> <sel>didReceiveAuthenticationChallenge:</sel> <arg type="NSURLAuthenticationChallenge*">challenge</arg> <desc> Called when an authentication <var>challenge</var> is received... the delegate should send <ref type="method" id="-useCredential:forAuthenticationChallenge:">-useCredential:forAuthenticationChallenge:</ref> or <ref type="method" id="-continueWithoutCredentialForAuthenticationChallenge:">-continueWithoutCredentialForAuthenticationChallenge:</ref> or <ref type="method" id="-cancelAuthenticationChallenge:">-cancelAuthenticationChallenge:</ref> to the <var>challenge</var> sender when done. </desc> </method> <method type="void" ovadd="10.2.0" gvadd="1.13.0"> <sel>connection:</sel> <arg type="NSURLConnection*">connection</arg> <sel>didReceiveData:</sel> <arg type="NSData*">data</arg> <desc> Called when content <var>data</var> arrives during a load operations... this may be incremental or may be the compolete <var>data</var> for the load. </desc> </method> <method type="void" ovadd="10.2.0" gvadd="1.13.0"> <sel>connection:</sel> <arg type="NSURLConnection*">connection</arg> <sel>didReceiveResponse:</sel> <arg type="NSURLResponse*">response</arg> <desc> Called when enough information to build a NSURLResponse object has been received. </desc> </method> <method type="NSCachedURLResponse*" ovadd="10.2.0" gvadd="1.13.0"> <sel>connection:</sel> <arg type="NSURLConnection*">connection</arg> <sel>willCacheResponse:</sel> <arg type="NSCachedURLResponse*">cachedResponse</arg> <desc> Called with the <var>cachedResponse</var> to be stored in the cache. The delegate can inspect the <var>cachedResponse</var> and return a modified copy if if wants changed to what whill be stored. <br /> If it returns <code>nil</code>, nothing will be stored in the cache. </desc> </method> <method type="NSURLRequest*" ovadd="10.2.0" gvadd="1.13.0"> <sel>connection:</sel> <arg type="NSURLConnection*">connection</arg> <sel>willSendRequest:</sel> <arg type="NSURLRequest*">request</arg> <sel>redirectResponse:</sel> <arg type="NSURLResponse*">response</arg> <desc> Informs the delegate that the <var>connection</var> must change the URL of the <var>request</var> in order to continue with the load operation. <br /> This allows the delegate to ionspect and/or modify a copy of the <var>request</var> before the <var>connection</var> continues loading it. Normally the delegate can return the <var>request</var> unmodifield. <br /> The redirection can be rejectected by the delegate calling <ref type="method" id="-cancel"> -cancel </ref> or returning <code>nil</code>. <br /> Cancelling the load will simply stop it, but returning <code>nil</code> will cause it to complete with a redirection failure. <br /> As a special case, this method may be called with a <code>nil</code> <var>response</var>, indicating a change of URL made internally by the system rather than due to a <var>response</var> from the server. </desc> </method> <method type="void" ovadd="10.2.0" gvadd="1.13.0"> <sel>connectionDidFinishLoading:</sel> <arg type="NSURLConnection*">connection</arg> <desc> Called when an NSURLConnection has finished loading successfully. </desc> </method> </category> </chapter> <chapter> <heading> Software documentation for the NSURLConnection(NSURLConnectionSynchronousLoading) category </heading> <category name="NSURLConnectionSynchronousLoading" class="NSURLConnection" ovadd="10.2.0" gvadd="1.13.0"> <declared>Foundation/NSURLConnection.h</declared> <desc> An interface to perform synchronous loading of URL requests. </desc> <method type="NSData*" factory="yes" ovadd="10.2.0" gvadd="1.13.0"> <sel>sendSynchronousRequest:</sel> <arg type="NSURLRequest*">request</arg> <sel>returningResponse:</sel> <arg type="NSURLResponse**">response</arg> <sel>error:</sel> <arg type="NSError**">error</arg> <desc> Performs a synchronous load of <var>request</var> and returns the <ref type="class" id="NSURLResponse">NSURLResponse</ref> in <var>response</var>. <br /> Returns the result of the load or <code>nil</code> if the load failed. </desc> </method> </category> </chapter> <chapter> <heading> Software documentation for the NSURLConnectionDelegate protocol </heading> <protocol name="NSURLConnectionDelegate" ovadd="10.7.0" gvadd="1.13.0"> <declared>Foundation/NSURLConnection.h</declared> <conform>NSObject</conform> <desc> <em>Description forthcoming.</em> </desc> </protocol> </chapter> </body> </gsdoc>