-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jose Nino <jnino@lyft.com>
- Loading branch information
Showing
12 changed files
with
335 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
#import "library/objective-c/EnvoyEngine.h" | ||
|
||
#import "library/common/extensions/filters/http/platform_bridge/c_types.h" | ||
|
||
// Concrete implementation of the `EnvoyHTTPFilterCallbacks` protocol. | ||
@interface EnvoyHTTPFilterCallbacksImpl : NSObject <EnvoyHTTPFilterCallbacks> | ||
|
||
- (instancetype)initWithCallbacks:(envoy_http_filter_callbacks)callbacks; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#import "library/objective-c/EnvoyHTTPFilterCallbacksImpl.h" | ||
|
||
#pragma mark - EnvoyHTTPFilterCallbacksImpl | ||
|
||
@implementation EnvoyHTTPFilterCallbacksImpl { | ||
envoy_http_filter_callbacks _callbacks; | ||
} | ||
|
||
- (instancetype)initWithCallbacks:(envoy_http_filter_callbacks)callbacks { | ||
self = [super init]; | ||
if (!self) { | ||
return nil; | ||
} | ||
|
||
_callbacks = callbacks; | ||
return self; | ||
} | ||
|
||
- (void)resumeIteration { | ||
_callbacks.resume_iteration(_callbacks.callback_context); | ||
} | ||
|
||
- (void)dealloc { | ||
_callbacks.release_callbacks(_callbacks.callback_context); | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.