Skip to content

Commit

Permalink
fix(http): add type alias for HttpApp
Browse files Browse the repository at this point in the history
  • Loading branch information
amitksingh1490 authored and tusharmath committed Sep 24, 2021
1 parent 148a9d5 commit dcb8528
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zio-http/src/main/scala/zhttp/http/package.scala
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
package zhttp

import io.netty.util.CharsetUtil
import zhttp.experiment.HttpApp
import zio.ZIO

import java.nio.charset.Charset

package object http extends PathModule with RequestSyntax with HttpAppSyntax with RouteDecoderModule {
type UHttpApp = HttpApp[Any, Nothing]
type RHttpApp[-R] = HttpApp[R, Throwable]
type UHttp[-A, +B] = Http[Any, Nothing, A, B]
type Endpoint = (Method, URL)
type Route = (Method, Path)
Expand Down

0 comments on commit dcb8528

Please sign in to comment.