Skip to content

Mint transport implementaion for UNIX sockets

License

Notifications You must be signed in to change notification settings

elridion/mint_unix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MintUnix

Mint transport implementation for UNIX sockets.
Documentation is available on hex.

Installation

The package can be installed by adding mint_unix to your list of dependencies in mix.exs:

def deps do
  [
    {:mint_unix, "~> 0.1.0"}
  ]
end

Usage

Manually create a HTTP1 or HTTP2 Mint connection wich can be used afterwards.

alias Mint.Core.Transport.UNIX

opts = [mode: :passive, transport_opts: [socket: "/var/run/myapplication.sock"]]

{:ok, conn} = Mint.HTTP1.connect(UNIX, "localhost", 80, opts)

The connection can then be used as documented in the Mint documentation.

About

Mint transport implementaion for UNIX sockets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages