murp

A reverse proxy handler for Mu Server

License

License

GroupId

GroupId

io.muserver
ArtifactId

ArtifactId

murp
Last Version

Last Version

0.6.2
Release Date

Release Date

Type

Type

jar
Description

Description

murp
A reverse proxy handler for Mu Server
Project URL

Project URL

https://github.com/3redronin/murp
Source Code Management

Source Code Management

https://github.com/3redronin/murp

Download murp

How to add to project

<!-- https://jarcasting.com/artifacts/io.muserver/murp/ -->
<dependency>
    <groupId>io.muserver</groupId>
    <artifactId>murp</artifactId>
    <version>0.6.2</version>
</dependency>
// https://jarcasting.com/artifacts/io.muserver/murp/
implementation 'io.muserver:murp:0.6.2'
// https://jarcasting.com/artifacts/io.muserver/murp/
implementation ("io.muserver:murp:0.6.2")
'io.muserver:murp:jar:0.6.2'
<dependency org="io.muserver" name="murp" rev="0.6.2">
  <artifact name="murp" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.muserver', module='murp', version='0.6.2')
)
libraryDependencies += "io.muserver" % "murp" % "0.6.2"
[io.muserver/murp "0.6.2"]

Dependencies

compile (5)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.30
io.muserver : mu-server jar 0.49.2
org.eclipse.jetty : jetty-client jar 9.4.30.v20200611
org.eclipse.jetty : jetty-util jar 9.4.30.v20200611
org.eclipse.jetty : jetty-http jar 9.4.30.v20200611

test (6)

Group / Artifact Type Version
org.slf4j : slf4j-simple jar 1.7.30
org.hamcrest : hamcrest-core jar 1.3
org.hamcrest : hamcrest-library jar 1.3
junit : junit jar 4.13.1
com.squareup.okhttp3 : okhttp jar 3.14.9
com.squareup.okhttp3 : okhttp-sse jar 3.14.9

Project Modules

There are no modules declared in this project.

Build Status GitHub

murp

A reverse proxy handler for Mu Server.

Quick Start

Add the latest dependencies...

<dependency>
    <groupId>io.muserver</groupId>
    <artifactId>mu-server</artifactId>
    <version>RELEASE</version>
</dependency>
<dependency>
    <groupId>io.muserver</groupId>
    <artifactId>murp</artifactId>
    <version>RELEASE</version>
</dependency>

...and start a server. In this example, an HTTPS server listening on port 8443 proxies all requests to http://target.example.org:8080

import io.muserver.*;
import io.muserver.murp.*;

public class QuickStart {
    public static void main(String[] args) {
        
        URI target = URI.create("http://target.example.org:8080");
        
        MuServer server = MuServerBuilder.muServer()
            .withHttpsPort(8443)
            .addHandler(ReverseProxyBuilder.reverseProxy()
                .withUriMapper(UriMapper.toDomain(target))
            )
            .start();
        
        System.out.println("Started reverse proxy at " + server.uri());
    }
}

For more documentation and a larger example, see https://muserver.io/murp

Versions

Version
0.6.2
0.6.1
0.6.0
0.5.5
0.5.3
0.5.1
0.5.0
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.5
0.3.4
0.3.3
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.3
0.1.2