- X-Forwarded-For, X-Forwarded-Prot, X-Forwarded-Host, X-Forwarded-Port
- Forwarded (params: for, by, proto)
- Via
- X-Real-IP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright 2023 Rich Dougherty | |
# which-hunt - an alternative to 'which' that traces symlinks and shims | |
# - Examples - | |
# | |
# $ which java | |
# /usr/bin/java | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com> | |
*/ | |
package play.it.http | |
import ch.qos.logback.classic.Logger | |
import ch.qos.logback.classic.spi.ILoggingEvent | |
import ch.qos.logback.core.AppenderBase | |
import org.slf4j.LoggerFactory | |
import org.specs2.execute.AsResult |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mimaBinaryIssueFilters ++= { | |
def excludeSymbols[P <: ProblemRef]( | |
name: String, | |
symbolFilter: String => Boolean)( | |
implicit problemTag: ClassTag[P]): ProblemFilter = { | |
{ problem: Problem => | |
// Check the problem type | |
if (problemTag.runtimeClass.isAssignableFrom(problem.getClass)) { | |
// Check the problem name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package models | |
import play.api._ | |
import play.api.mvc._ | |
import play.api.libs.json._ | |
import play.api.data.validation.ValidationError | |
object Animals { | |
// Create an abstract class to define common operations for `object Monkey` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package play.it.http | |
import play.api.mvc._ | |
import play.api.mvc.Results._ | |
import play.api.test._ | |
import play.api.libs.ws.Response | |
object RequestURIHandlingSpec extends PlaySpecification { | |
"Request-URI handling" should { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tested with https://github.com/rbsec/sslscan v1.11.11 | |
===== Java 1.6.0_45 ===== | |
Testing SSL server localhost on port 9443 using SNI name localhost | |
TLS Fallback SCSV: | |
Server does not support TLS Fallback SCSV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait RequestFactory { | |
def createRequestHeader( | |
connection: RemoteConnection, | |
method: String, | |
target: RequestTarget, | |
version: String, | |
headers: Headers, | |
attrs: TypedMap): RequestHeader | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait GreeterService { | |
... | |
} | |
object GreeterService extends GreeterServiceCompanion[GreeterService] { | |
override val name = "helloworld.GreeterService" | |
... | |
} | |
class GreeterServiceClient(channel: Channel, options: CallOptions)(implicit mat: Materializer, ex: ExecutionContext) extends GreeterService { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait Handler | |
trait HandlerOp[+A] | |
case class HandlerVal[+A](value: A) extends HandlerOp[A] | |
case class HandlerThunk[+A](thunk: () => A) extends HandlerOp[A] | |
case class HandlerFuture[+A](future: Future[A]) extends HandlerOp[A] | |
case class HandlerEither[+A,B<:A,C<:A](either: Either[B,C]) extends HandlerOp[A] | |
object Handler { | |
trait RequestHeader |
NewerOlder