UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FAppleHttpResponseDelegate Class Reference

#include <AppleHttpObjc.h>

+ Inheritance diagram for FAppleHttpResponseDelegate:

Instance Methods

(void- URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:
 
(void- URLSession:dataTask:didReceiveResponse:completionHandler:
 
(void- URLSession:dataTask:didReceiveData:
 
(void- URLSession:task:didCompleteWithError:
 
(void- URLSession:dataTask:willCacheResponse:completionHandler:
 

Public Attributes

BOOL bInitializedWithValidStream
 
BOOL bAnyHttpActivity
 
FNewAppleHttpEventDelegate NewAppleHttpEventDelegate
 

Properties

NSURLResponseResponse
 
uint64 BytesWritten
 
uint64 BytesReceived
 
EHttpRequestStatus::Type RequestStatus
 
EHttpFailureReason FailureReason
 
TWeakPtr< FAppleHttpRequestSourceRequest
 

Detailed Description

Class to hold data from delegate implementation notifications.

Method Documentation

◆ URLSession:dataTask:didReceiveData:

- (void) URLSession: (NSURLSession *)  session
dataTask: (NSURLSessionDataTask *)  dataTask
didReceiveData: (NSData *)  data 

Sent when data is available for the delegate to consume. Data may be discontiguous

◆ URLSession:dataTask:didReceiveResponse:completionHandler:

- (void) URLSession: (NSURLSession *)  session
dataTask: (NSURLSessionDataTask *)  dataTask
didReceiveResponse: (NSURLResponse *)  response
completionHandler: (void(^)(NSURLSessionResponseDisposition disposition))  completionHandler 

The task has received a response and no further messages will be received until the completion block is called.

◆ URLSession:dataTask:willCacheResponse:completionHandler:

- (void) URLSession: (NSURLSession *)  session
dataTask: (NSURLSessionDataTask *)  dataTask
willCacheResponse: (NSCachedURLResponse *)  proposedResponse
completionHandler: (void(^)(NSCachedURLResponse *cachedResponse))  completionHandler 

Asks the delegate if it needs to store responses in the cache.

◆ URLSession:task:didCompleteWithError:

- (void) URLSession: (NSURLSession *)  session
task: (NSURLSessionTask *)  task
didCompleteWithError: (nullable NSError *)  error 

Sent as the last message related to a specific task. A nil Error implies that no error occurred and this task is complete.

◆ URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:

- (void) URLSession: (NSURLSession *)  session
task: (NSURLSessionTask *)  task
didSendBodyData: (int64_t bytesSent
totalBytesSent: (int64_t totalBytesSent
totalBytesExpectedToSend: (int64_t totalBytesExpectedToSend 

NSURLSessionDataDelegate delegate methods. Those are called from a thread controlled by the NSURLSession Sent periodically to notify the delegate of upload progress.

Member Data Documentation

◆ bAnyHttpActivity

- (BOOL) bAnyHttpActivity

Have we received any data?

◆ bInitializedWithValidStream

- (BOOL) bInitializedWithValidStream

◆ NewAppleHttpEventDelegate

- (FNewAppleHttpEventDelegate) NewAppleHttpEventDelegate

Delegate invoked after processing URLSession:dataTask:didReceiveData or URLSession:task:didCompleteWithError:

Property Documentation

◆ BytesReceived

- (uint64) BytesReceived
readwriteatomic

The total number of bytes received out during the request/response

◆ BytesWritten

- (uint64) BytesWritten
readwriteatomic

The total number of bytes written out during the request/response

◆ FailureReason

- (EHttpFailureReason) FailureReason
readwriteatomic

Reason of failure

◆ RequestStatus

- (Type) FAppleHttpResponseDelegate:
readwriteatomic

Request status

◆ Response

- (NSURLResponse*) Response
readwriteatomicretain

A handle for the response

◆ SourceRequest

- (TWeakPtr<FAppleHttpRequest>) SourceRequest
readwriteatomic

Associated request. Cleared when canceled


The documentation for this class was generated from the following files: