Added README files to etc/ and etc.dev/ .
This commit is contained in:
parent
c5c9340e4d
commit
8cc68910e5
2 changed files with 25 additions and 0 deletions
24
linspector/services/http/httpconnect.py
Normal file
24
linspector/services/http/httpconnect.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
"""
|
||||
This file is part of Linspector (https://linspector.org/)
|
||||
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
|
||||
See LICENSE.txt (MIT license).
|
||||
"""
|
||||
from linspector.core.service import Service
|
||||
|
||||
|
||||
def create(configuration, environment, log):
|
||||
return HTTPConnectService(configuration, environment, log)
|
||||
|
||||
|
||||
# Get the status code returned by a http request. Action handling is configured using kwargs. So,
|
||||
# let's say all below 4** are no errors and others are an error. Or maybe define ranges, or just
|
||||
# maybe the status code that produces an error.
|
||||
class HTTPConnectService(Service):
|
||||
def __init__(self, configuration, environment, log):
|
||||
super().__init__(configuration, environment, log)
|
||||
self.__configuration = configuration
|
||||
self.__environment = environment
|
||||
self.__log = log
|
||||
|
||||
def execute(self, **kwargs):
|
||||
return
|
||||
|
|
@ -10,6 +10,7 @@ def create(configuration, environment, log):
|
|||
return HTTPKeywordService(configuration, environment, log)
|
||||
|
||||
|
||||
# Get a true or false when a keyword is found in a http request.
|
||||
class HTTPKeywordService(Service):
|
||||
def __init__(self, configuration, environment, log):
|
||||
super().__init__(configuration, environment, log)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue