Latest 0.0.1
License BSD-License 2
Platforms ios 8.0, osx 10.10

Gopher support for iOS and macOS!

Add support for the gopher protocol to your project with this NSURLProtocol subclass.

Still a work in progress, but should work for most gopher text pages. No proxy support yet.

More Information about the gopher protocol can be found here

Basic Usage

To use in your own projects, import the GopherURLProtocol class and header into your

#import "GopherURLProtocol.h"

Register the class as early in the application execution as possible

[NSURLProtocol registerClass: [GopherURLProtocol class]];

After registration, data can be loaded from gopher servers via the regular url methods

NSURL *url = [NSURL URLWithString: @"gopher://"];

if (url != nil)
    NSData *urlData = [NSData dataWithContentsOfURL: url];
    NSString *outputString = [[NSString alloc] initWithBytes: urlData.bytes
        length: urlData.length encoding: NSUTF8StringEncoding];

    printf("%s", outputString.UTF8String);

For more information and sample code, check out the XCode project.


BSD (Berkeley Software Distribution) License.
Copyright (c) 2017, Impending

Latest podspec

    "name": "GopherURLProtocol",
    "version": "0.0.1",
    "summary": "Gopher network protocol support for iOS and macOS",
    "description": "NSURLProtocol subclass with support for the Gopher network protocol.",
    "homepage": "",
    "license": "BSD-License 2",
    "authors": {
        "Freddie Tilley": "[email protected]"
    "platforms": {
        "ios": "8.0",
        "osx": "10.10"
    "source": {
        "git": "",
        "tag": "0.0.1"
    "source_files": [

Pin It on Pinterest

Share This