Latest0.0.1
Homepagehttps://github.com/freddietilley/GopherURLProtocol
LicenseBSD-License 2
Platformsios 8.0, osx 10.10
Authors

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 https://en.wikipedia.org/wiki/Gopher_(protocol)

Basic Usage

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

#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://gopherpedia.com"];

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.

License

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": "https://github.com/freddietilley/GopherURLProtocol",
    "license": "BSD-License 2",
    "authors": {
        "Freddie Tilley": "[email protected]"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.10"
    },
    "source": {
        "git": "https://github.com/freddietilley/GopherURLProtocol.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "GopherURLProtocol/GopherURLProtocol.h",
        "GopherURLProtocol/GopherURLProtocol.m"
    ]
}

Pin It on Pinterest

Share This