🧠
ngx-crud
  • Introduction
  • API
    • HTTP Operations
    • HTTP Aborting
    • HTTP Caching
    • HTTP Observing
    • HTTP Options
    • HTTP Context
    • HTTP Headers
    • HTTP Params
    • Service Instance
    • Service Options
  • Reference
    • Modules
      • AbortModule
      • CacheModule
      • ObserveModule
      • CrudModule
    • Services
      • AbortService
      • CacheService
      • CommonService
      • CrudService
      • CustomService
      • DeleteService
      • FindService
      • GetService
      • ObserveService
      • PatchService
      • PostService
      • PutService
    • Interceptors
      • AbortInterceptor
      • CacheInterceptor
      • ObserveInterceptor
    • Decorators
      • @ApiUrl
      • @ApiRoute
    • Helpers
      • createUrl
      • createUrlWithId
      • stripUrlParams
  • Examples
    • Services
      • Fully Typed Collection
      • Limited Singleton
    • Components
      • Loader
    • Effects
      • ProfilerEffect
      • ErrorEffect
      • OfflineEffect
  • Links
    • GitHub
Powered by GitBook
On this page
  • Get
  • Set
  • Clear
  1. API

HTTP Context

Get

Get the context by token:

crudService.getContextByToken(token : HttpContextToken<Context>) : HttpContext

Get the context instance of the service:

crudService.getContext() : HttpContext

Set

Set the context by token:

crudService.setContextByToken(token : HttpContextToken<Context>, value : Context) : this

Set the context instance of the service:

crudService.setContext(context : HttpContext) : this

Clear

Clear the context by token:

crudService.clearContextByToken(token : HttpContextToken<Context>) : this

Clear the context instance of the service:

crudService.clearContext() : this
PreviousHTTP OptionsNextHTTP Headers

Last updated 3 years ago