XCServerAPI 4.2.0

XCServerAPI 4.2.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Dec 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by Richard Piazza.


Downloads

Total193
Week0
Month0

Installs

Apps4
Test Targets3
powered by Segment

GitHub

Stars1
Watchers1
Forks0
Issues0
Contributors1
Pull Requests0

Code

Files64
LOCLines of Code 1,321


 
Depends on:
CodeQuickKit~> 6.0
BZipper~> 1.0.3
 

XCServerAPI

Version
Platform

An API and model framework for working with Xcode Server.

XCServerWebAPI.swift

Wraps an NSURLSession for each XcodeServer entity.
Two static delegates are available for handling SSL and HTTP Authentication for your server:

XCServerWebAPI.sessionDelegate: NSURLSessionDelegate
XCServerWebAPI.credentialDelegate: XCServerWebAPICredentialDelegate

There are default objects assigned to these properties.
The default sessionDelegate will accept and trust SSL certificates even if self-signed.
The default credentialDelegate will provide no credentials.

The XCServerWebAPICredentialDelegate has a default implementation for the method:

credentialsHeader(forAPI:) -> XCServerWebAPICredentialsHeader

that will return a base 64 encoded username password pair for the HTTP Authorization header.