All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.gatling.http.Headers.scala Maven / Gradle / Ivy

There is a newer version: 3.13.1
Show newest version
/*
 * Copyright 2011-2024 GatlingCorp (https://gatling.io)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.gatling.http

import io.netty.handler.codec.http.{ HttpHeaderNames, HttpHeaderValues }

object HeaderNames {
  val Accept: CharSequence = HttpHeaderNames.ACCEPT
  val AcceptCharset: CharSequence = HttpHeaderNames.ACCEPT_CHARSET
  val AcceptEncoding: CharSequence = HttpHeaderNames.ACCEPT_ENCODING
  val AcceptLanguage: CharSequence = HttpHeaderNames.ACCEPT_LANGUAGE
  val AcceptPatch: CharSequence = HttpHeaderNames.ACCEPT_PATCH
  val AcceptRanges: CharSequence = HttpHeaderNames.ACCEPT_RANGES
  val Age: CharSequence = HttpHeaderNames.AGE
  val Allow: CharSequence = HttpHeaderNames.ALLOW
  val Authorization: CharSequence = HttpHeaderNames.AUTHORIZATION
  val CacheControl: CharSequence = HttpHeaderNames.CACHE_CONTROL
  val Connection: CharSequence = HttpHeaderNames.CONNECTION
  val ContentBase: CharSequence = HttpHeaderNames.CONTENT_BASE
  val ContentEncoding: CharSequence = HttpHeaderNames.CONTENT_ENCODING
  val ContentLanguage: CharSequence = HttpHeaderNames.CONTENT_LANGUAGE
  val ContentLength: CharSequence = HttpHeaderNames.CONTENT_LENGTH
  val ContentLocation: CharSequence = HttpHeaderNames.CONTENT_LOCATION
  val ContentTransferEncoding: CharSequence = HttpHeaderNames.CONTENT_TRANSFER_ENCODING
  val ContentMD5: CharSequence = HttpHeaderNames.CONTENT_MD5
  val ContentRange: CharSequence = HttpHeaderNames.CONTENT_RANGE
  val ContentType: CharSequence = HttpHeaderNames.CONTENT_TYPE
  val Cookie: CharSequence = HttpHeaderNames.COOKIE
  val Date: CharSequence = HttpHeaderNames.DATE
  val DNT: CharSequence = HttpHeaderNames.DNT
  val ETag: CharSequence = HttpHeaderNames.ETAG
  val Expect: CharSequence = HttpHeaderNames.EXPECT
  val Expires: CharSequence = HttpHeaderNames.EXPIRES
  val From: CharSequence = HttpHeaderNames.FROM
  val Host: CharSequence = HttpHeaderNames.HOST
  val IfMatch: CharSequence = HttpHeaderNames.IF_MATCH
  val IfModifiedSince: CharSequence = HttpHeaderNames.IF_MODIFIED_SINCE
  val IfNoneMatch: CharSequence = HttpHeaderNames.IF_NONE_MATCH
  val IfRange: CharSequence = HttpHeaderNames.IF_RANGE
  val IfUnmodifiedSince: CharSequence = HttpHeaderNames.IF_UNMODIFIED_SINCE
  val LastModified: CharSequence = HttpHeaderNames.LAST_MODIFIED
  val Location: CharSequence = HttpHeaderNames.LOCATION
  val MaxForwards: CharSequence = HttpHeaderNames.MAX_FORWARDS
  val Origin: CharSequence = HttpHeaderNames.ORIGIN
  val Pragma: CharSequence = HttpHeaderNames.PRAGMA
  val ProxyAuthenticate: CharSequence = HttpHeaderNames.PROXY_AUTHENTICATE
  val ProxyAuthorization: CharSequence = HttpHeaderNames.PROXY_AUTHORIZATION
  val Range: CharSequence = HttpHeaderNames.RANGE
  val Referer: CharSequence = HttpHeaderNames.REFERER
  val RetryAfter: CharSequence = HttpHeaderNames.RETRY_AFTER
  val SecWebSocketKey1: CharSequence = HttpHeaderNames.SEC_WEBSOCKET_KEY1
  val SecWebSocketKey2: CharSequence = HttpHeaderNames.SEC_WEBSOCKET_KEY1
  val SecWebSocketLocation: CharSequence = HttpHeaderNames.SEC_WEBSOCKET_LOCATION
  val SecWebSocketOrigin: CharSequence = HttpHeaderNames.SEC_WEBSOCKET_ORIGIN
  val SecWebSocketProtocol: CharSequence = HttpHeaderNames.SEC_WEBSOCKET_PROTOCOL
  val SecWebSocketVersion: CharSequence = HttpHeaderNames.SEC_WEBSOCKET_VERSION
  val SecWebSocketKey: CharSequence = HttpHeaderNames.SEC_WEBSOCKET_KEY
  val SecWebSocketAccept: CharSequence = HttpHeaderNames.SEC_WEBSOCKET_ACCEPT
  val SecWebSocketExtensions: CharSequence = HttpHeaderNames.SEC_WEBSOCKET_EXTENSIONS
  val Server: CharSequence = HttpHeaderNames.SERVER
  val SetCookie: CharSequence = HttpHeaderNames.SET_COOKIE
  val SetCookie2: CharSequence = HttpHeaderNames.SET_COOKIE2
  val TE: CharSequence = HttpHeaderNames.TE
  val Trailer: CharSequence = HttpHeaderNames.TRAILER
  val TransferEncoding: CharSequence = HttpHeaderNames.TRANSFER_ENCODING
  val Upgrade: CharSequence = HttpHeaderNames.UPGRADE
  val UserAgent: CharSequence = HttpHeaderNames.USER_AGENT
  val UpgradeInsecureRequests: CharSequence = HttpHeaderNames.UPGRADE_INSECURE_REQUESTS
  val Vary: CharSequence = HttpHeaderNames.VARY
  val Via: CharSequence = HttpHeaderNames.VIA
  val Warning: CharSequence = HttpHeaderNames.WARNING
  val WebSocketLocation: CharSequence = HttpHeaderNames.WEBSOCKET_LOCATION
  val WebSocketOrigin: CharSequence = HttpHeaderNames.WEBSOCKET_ORIGIN
  val WebSocketProtocol: CharSequence = HttpHeaderNames.WEBSOCKET_PROTOCOL
  val WWWAuthenticate: CharSequence = HttpHeaderNames.WWW_AUTHENTICATE
  val XRequestedWith: CharSequence = HttpHeaderNames.X_REQUESTED_WITH
}

object HeaderValues {
  val ApplicationJson: String = HttpHeaderValues.APPLICATION_JSON.toString
  val ApplicationOctetStream: String = HttpHeaderValues.APPLICATION_OCTET_STREAM.toString
  val ApplicationFormUrlEncoded: String = HttpHeaderValues.APPLICATION_X_WWW_FORM_URLENCODED.toString
  val ApplicationXml: String = HttpHeaderValues.APPLICATION_XML.toString
  val ApplicationXhtml: String = HttpHeaderValues.APPLICATION_XHTML.toString
  val Close: String = HttpHeaderValues.CLOSE.toString
  val MultipartFormData: String = HttpHeaderValues.MULTIPART_FORM_DATA.toString
  val NoCache: String = HttpHeaderValues.NO_CACHE.toString
  val NoStore: String = HttpHeaderValues.NO_STORE.toString
  val TextCss: String = HttpHeaderValues.TEXT_CSS.toString
  val TextHtml: String = HttpHeaderValues.TEXT_HTML.toString
  val TextPlain: String = HttpHeaderValues.TEXT_PLAIN.toString
  val TextEventStream: String = HttpHeaderValues.TEXT_EVENT_STREAM.toString
  val XmlHttpRequest: String = HttpHeaderValues.XML_HTTP_REQUEST.toString
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy