gemcap-0.1.0.1: a simple Gemini capsule (server)
Copyright(C) Jonathan Lamothe
LicenseAGPL-3.0-or-later
Maintainerjonathan@jlamothe.net
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.Gemini.Capsule.Types

Description

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Synopsis

Types

data GemURL Source #

Gemini URL

Constructors

GemURL 

Fields

Instances

Instances details
Show GemURL Source # 
Instance details

Defined in Network.Gemini.Capsule.Types

Eq GemURL Source # 
Instance details

Defined in Network.Gemini.Capsule.Types

Methods

(==) :: GemURL -> GemURL -> Bool #

(/=) :: GemURL -> GemURL -> Bool #

data GemRequest Source #

Describes a Gemini request

Constructors

GemRequest 

Fields

Instances

Instances details
Show GemRequest Source # 
Instance details

Defined in Network.Gemini.Capsule.Types

Eq GemRequest Source # 
Instance details

Defined in Network.Gemini.Capsule.Types

data GemResponse Source #

Describes a response to a Gemini request

Constructors

GemResponse 

Fields

Instances

Instances details
Show GemResponse Source # 
Instance details

Defined in Network.Gemini.Capsule.Types

Eq GemResponse Source # 
Instance details

Defined in Network.Gemini.Capsule.Types

data GemCapSettings Source #

The settings required to set up a Gemini capsule

Constructors

GemCapSettings 

Fields

Constructors

newGemURL Source #

Arguments

:: String

The hostname

-> GemURL 

Builds a new GemURL

newGemRequest Source #

Arguments

:: GemURL

The request URL

-> GemRequest 

Builds a GemRequest

newGemCapSettings Source #

Arguments

:: FilePath

Path to the server certificate

-> FilePath

Path to the private key

-> GemCapSettings 

Builds a reasonable set of server settings.